简体   繁体   English

Git bash不会让我拉

[英]Git bash won't let me pull

So I made some changes to my file and now when I check my status it says : 所以我对我的文件进行了一些更改,现在当我检查我的状态时,它说:

   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

So I try to pull and it says 所以我试着拉,它说

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

I've tried to git rm -f docs/com/teamname/tutortrader/C:\\nppdf32Log\\debuglog.txt but it just says that this file doesn't exist. 我试过git rm -f docs/com/teamname/tutortrader/C:\\nppdf32Log\\debuglog.txt但它只是说这个文件不存在。 I've also tried rm -f C:\\nppdf32Log\\debuglog.txt , but that doesn't exist either. 我也尝试过rm -f C:\\nppdf32Log\\debuglog.txt ,但这也不存在。

Some kind person (presumably on Linux or Mac) has added a file to your repo called C:\\nppdf32Log\\debuglog.txt . 某种人(可能是在Linux或Mac上)已经在你的C:\\nppdf32Log\\debuglog.txt添加了一个名为C:\\nppdf32Log\\debuglog.txt This is an invalid filename on Windows. 这是Windows上的无效文件名。 You need to get them to rename this file or you won't be able to clone this repo on Windows any more. 您需要让他们重命名此文件,否则您将无法再在Windows上克隆此repo。

cf how do I clone files with colons in the filename cf 如何使用文件名中的冒号克隆文件

In the github interface with a file open, look at the top-right-hand side. 在打开文件的github界面中,查看右上角。 You'll see buttons labeled "Raw", "Blame" and "History". 你会看到标有“Raw”,“Blame”和“History”的按钮。 To their right -- if you have write access to the repo -- there will also be a garbage can. 在他们的右边 - 如果你有对回购的写入权限 - 那么也会有一个垃圾桶。 Clicking on that will commit a change deleting that file from the repository. 单击它将提交从存储库中删除该文件的更改。

Do so for the offending file, and you'll again be able to check this out on Windows. 对违规文件执行此操作,您将再次能够在Windows上进行检查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM