解决idea文件名称大小写致使GIT没法提交问题

在建立文件的时候不当心将文件名大小写错了html

例:android

建立:A.html  而且已经加入本地索引git

修改文件名:A.html 为 a.htmlandroid-studio

commit 报错:spa

Commit failed with error:pathspec 'test/a.html' did not match any file(s) known to git.命令行

解决方法:htm

在命令行执行: blog

1. git status索引

On branch dev
Your branch is up-to-date with 'origin/dev'.it

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        new file:   test/A.html

2.  git reset test/A.html

3. git add test/a.html

问题解决

参考:http://stackoverflow.com/questions/29485350/git-case-sensitivity-error-renaming-and-committing-from-android-studio/29485441#29485441

PS: 新版本IDEA已经修复此问题

相关文章
相关标签/搜索