最近idea改了文件后用git会显示no changes detected

查出来我是因为新安装了git,路径有变化。可以点击test按钮测试idea里的git是否可用(我现在是可用的,之前的显示error):

git commit:no changes detected

 

所以显示error的话本地执行which git查一下git的路径,然后把idea里的git路径改一下就好了,如下图:

git commit:no changes detected

 

 

 

相关文章: