egg
egg

Reputation: 231

intellij idea version control can‘t work well

I generate some XXXmapper.java with mybatis-genarate. In intellij Local Changes Tab , I find that 21 files are changed.

enter image description here

However,When I check what files are changed ,I find that there is no changed. I use the command “show diff”,it show that “no differences”.

Is It a bug for intellij idea.

enter image description here

Upvotes: 1

Views: 64

Answers (1)

Dmitrii Smirnov
Dmitrii Smirnov

Reputation: 7558

If Line endings are changed, git on the command line will report the files a modified, so it is expected behavior.

If you are on Windows, you most likely have git config core.autocrlf set to true thus you will not be able to commit the line endings changes to the repository.

Here is the request to better handle such situations in IntelliJ. https://youtrack.jetbrains.com/v2/issue/IDEA-175120

Upvotes: 2

Related Questions