Git bash 不让我拉

Git bash won't let me 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

所以我试着拉,它说

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 上克隆此存储库。

c.f。 how do I clone files with colons in the filename

在打开文件的github界面中,查看右上角。您会看到标有 "Raw"、"Blame" 和 "History" 的按钮。在他们的右边——如果你有写回购的权限——也会有一个垃圾桶。单击它将提交更改,从存储库中删除该文件。

对有问题的文件执行此操作,您将能够在 Windows 上再次检查它。