git文件名大小写变更后未产生变化问题处理

有时由于拼写错误导致需要修改文件名大小写后重新提交代码,结果发现git status中并未找到该变化,究其原因是默认git配置了忽略大小写敏感

$ git config core.ignorecase
true
# 下面设置大小写敏感为敏感
$ git config core.ignorecase false
这时,再通过git status就能找到你修改文件名大小写后的变更了

参考:https://stackoverflow.com/questions/17683458/how-do-i-commit-case-sensitive-only-filename-changes-in-git


转载:https://blog.csdn.net/weixin_33725270/article/details/86921729 
 

猜你喜欢

转载自blog.csdn.net/bbsyi/article/details/90019539