【发布时间】:2017-06-17 07:19:40
【问题描述】:
远程存储库 (bitbucket) 中存在一些文件。但是,这些文件不再存在于本地存储库中。
我猜它与以下命令有关:
git config core.ignorecase false
在我意识到文件在我的计算机 (OSX) 中正确但在 Git 存储库中错误后执行了该命令(它们在本地存储库中为小写,但在远程存储库中为大写)。然后我执行了:
git add . && git commit -m "comment"
git push origin master
不幸的是,存储库的大写文件没有更改为小写。相反,存储库保留了小写和大写文件的重复。
我已经执行了如下命令:
git diff master origin (it does not show anything, I guess because it does not detect any change).
git commit -a (no effect)
git add -u (no effect)
【问题讨论】:
标签: git macos github bitbucket case-sensitive