1
git status
lit/1252-a-comparison-between-neural-networks-and-other-statistical-techniques-for-modeling-the-relationship-between-tobacco-and-alcohol-and-cancer.pdf: File name too long
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean.
该文件已被删除,这是我可以用下面的命令确认:
git ls-files --deleted
输出:
lit/1252-a-comparison-between-neural-networks-and-other-statistical-techniques-for-modeling-the-relationship-between-tobacco-and-alcohol-and-cancer.pdf
当尝试删除它与git ls-files --deleted | xargs git rm
没有效果,但我不能提交更改我的存储库,直到我删除此文件。
我也试过使用:git config --system core.longpaths true
但没有成功。
我想知道如何解决这个问题?
您是否尝试过[混帐RM --cached(https://stackoverflow.com/questions/37279654/when-should-i-use-rm- git-rm-git-rm-cached-git-add)在这个文件上? –
谢谢,这解决了我的问题。 – olyashevska
@MattSlonetsky请提供您的评论作为答案。 –