intellij-idea - github synchronization file name always errors
伊谢尔伦
伊谢尔伦 2017-05-02 09:28:45
0
2
796

In java project

I use github to manage my project data, but after some of the class names (file names) are modified, they will be changed back during synchronization (IDEA or github client).
Did I overlook some files?

This is the ignore list in IDEA

Obviously the class name (file name) is already the right one, but the refresh in version control still has the old name

The above situation will cause the class name (file name) to be modified back to the old one every time I synchronize it on another computer.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
刘奇

It’s a bug. You need to back up the file first, then use git rm to delete it. After committing it once, add the file back and commit it again.

给我你的怀抱

Windows and OS X are not case-sensitive in file names, but git itself is.

You can use git mv to change your name:

git mv -f file File

will come from file改成File.


Also, if your operating system is case-sensitive in file names, you can look at a setting in the configuration core.ignoreCase(参考git-config)是不是默认值(false):

git config core.ignorecase

If the return value is not empty or false的话,把它设置成false.

git config core.ignorecase false
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template