Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Windows 8 上使用 git,并且在移动添加到源代码管理的文件时遇到问题。如果在运行 Windows 8 时将文件添加到我的计算机上,则文件未完全添加。例如,我的意思是我可以使用 gitk 查看文件的版本历史记录。但是,如果我执行 git-move,我会得到文件不受版本控制的答案,因此我无法移动文件。我用谷歌搜索了这个问题,找不到其他人有这个问题。我只知道我的同事有完全相同的问题。(我使用的是 git 版本 1.7.10.3)
也许这是文件名案例的一个技巧?对于git FileName.TXT和filename.txt是两个完全不同的文件,而对于 Windows,它们是完全一样的。
git
FileName.TXT
filename.txt
请检查您在磁盘和git索引中使用的文件的情况。查看大小写是否有任何区别,然后使用git索引中使用的文件名作为git命令的参数。