IDEA提交不显示Git文件呈现红色

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wangyang1354/article/details/80098915

该问题一般是也用过SVN,导致在使用中Git项目中,编译器的环境配置被篡改成SVN处理了,打开.idea文件夹中的vcs.xml

看到部分被标记为svn的文件夹,将其替换为Git即可。

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="VcsDirectoryMappings">
    <mapping directory="$PROJECT_DIR$" vcs="Git" />
  </component>
</project>

猜你喜欢

转载自blog.csdn.net/wangyang1354/article/details/80098915
今日推荐