所以我对我的文件做了一些更改,现在当我检查我的状态时它说:
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 上克隆此存储库。
关于Git bash 不让我 pull ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36271630/