简体   繁体   English

IntelliJ IDEA版本控制无法正常工作

[英]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.

相关问题 无法在 Intellij Idea 中查看本地更改和登录版本控制选项卡 (git) 中的信息 - Can't view info in Local Changes and Log on Version Control tab (git) in Intellij Idea "在 IntelliJ Idea 中,我可以在版本控制中管理代码\/文件模板吗?" - In IntelliJ Idea, can I manage code / file templates in Version Control? 从IntelliJ IDEA中的版本控制中删除文件 - Remove file from Version Control in IntelliJ IDEA 在 IntelliJ IDEA 中的版本控制下正确处理依赖项 - Proper handling of dependencies under Version Control in IntelliJ IDEA 当项目树有二进制文件时,GIT、Mercurial、SVN 或其他版本控制工具能否正常工作? - Can GIT, Mercurial, SVN, or other version control tools work well when project tree has binary files? Heroku可以用作版本控制吗? - Can Heroku work as version control? 我的想法“设置-> 版本控制”没有“git” - My IDEA "settings --> version control" doesn't have "git" IDE Intellij IDEA 的工具版本控制中的 Smart Checkout 有什么作用? - What does Smart Checkout in IDE Intellij IDEA's tool Version Control do? 无法使用 SSH 将 IntelliJ-IDEA 连接到 GitLab - Can't connect IntelliJ-IDEA to GitLab with SSH 如何在 IntelliJ Idea 版本 21 中“中止”合并? - How to “abort” merge in IntelliJ Idea version 21?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM