Git bash 不让我 pull

标签 git bash github git-pull

所以我对我的文件做了一些更改,现在当我检查我的状态时它说:

   On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 80 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)
nothing to commit, working directory clean

所以我试着 pull ,它说

error: unable to create file docs/com/teamname/tutortrader/C:\nppdf32Log\debuglog.txt (Invalid argument)

我试过 git rm -f docs/com/teamname/tutortrader/C:\nppdf32Log\debuglog.txt 但它只是说这个文件不存在。我也尝试过 rm -f C:\nppdf32Log\debuglog.txt,但也不存在。

最佳答案

某些好心人(大概是在 Linux 或 Mac 上)已将一个名为 C:\nppdf32Log\debuglog.txt 的文件添加到您的存储库中。这是 Windows 上的无效文件名。您需要让他们重命名此文件,否则您将无法再在 Windows 上克隆此存储库。

比较how do I clone files with colons in the filename

关于Git bash 不让我 pull ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36271630/

相关文章:

Git 从具有指定 URL 的特定分支中 pull

github - 使用浏览器将二进制文件上传到 github?

git - github 托管对于私有(private)存储库有多安全?

git - 在 'git pull --rebase' 之后看不到远程更改

git - 如何将一个分支快进到另一个非主分支

python - 用于 Python 的 Github API : PyGithub - get a list of all commits for a particular repository

linux - 如何比较bash中两个目录的内容?

windows - 通过 Github 桌面应用程序(Windows)推送到 Github 的提交未显示

bash - Nice/IOnice 哪个第一?有关系吗?还有其他方法可以减少脚本上的服务器负载吗?

javascript - 将二进制文件内容转储到 JSON 数组中