【发布时间】:2015-07-16 16:40:14
【问题描述】:
我在 Git 中有一个名为 100_Test_Customer_Team_abc.txt 的文件,它已被推送到远程存储库。我的名字弄错了——团队应该是大写字母,所以我想把它重命名为100_Test_Customer_Team_ABC.txt。
我用过:
git mv 100_Test_Customer_Team_abc.txt 100_Test_Customer_Team_ABC.txt
但我收到以下错误:
致命:目的地存在
如何重命名?
【问题讨论】:
-
文件系统是否区分大小写?
-
重置头部并再次添加文件
-
Windows 操作系统
-
git mv 100_Test_Customer_Team_abc.txt tmp && git mv tmp 100_Test_Customer_Team_ABC.txt,也许吧。
标签: git