[英]intellij idea version control can‘t work well
I generate some XXXmapper.java with mybatis-genarate. 我用mybatis-genarate生成了一些XXXmapper.java。 In intellij Local Changes Tab , I find that 21 files are changed. 在intellij的“本地更改”选项卡中,我发现有21个文件已更改。
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”. 我使用命令“ show diff”,显示“没有差异”。
Is It a bug for intellij idea. 是IntelliJ想法的错误。
If Line endings are changed, git on the command line will report the files a modified, so it is expected behavior. 如果更改行尾,则命令行上的git将报告文件已修改,因此是预期的行为。
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. 如果您使用的是Windows,则很可能将git config core.autocrlf
设置为true
因此您将无法将行尾更改提交到存储库。
Here is the request to better handle such situations in IntelliJ. 这是更好地处理IntelliJ中此类情况的请求。 https://youtrack.jetbrains.com/v2/issue/IDEA-175120 https://youtrack.jetbrains.com/v2/issue/IDEA-175120
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.