Git uanble to properly detect changes in IDEA
Git only detects changes in certain files, the pattern of which I am not able to decipher.
I could edit a file, save, open the commit menu and not see it show up.
Then edit a different java file and see that second file show up on the commit menu.
THEN go back to edit the first file, and now either files show up on the commit.
I've read that this can happen because of SVN. So I gone ahead and pointed SVN to the proper SVN.exe and problem still happens.
I tried importing the project under a new workspace, the problem still occurs.
One other thing I've noticed is that occasionally when I save all files, the color of the file name would change from Blue to White, even though the file itself wasn't commited. And this behavior isn't always guaranteed.
Exactly when a file will go from blue to white when saving cannot be predicated.
I've ensured that my git is in fact working properly, if I were to run git status through the command line I can see all the correct changes being detected. However if I were to git add the files that intellij was unable to pick up changes for, or did pick up change for then abandoned for some reason, It will then permanently stay in the commit menu.
Please sign in to leave a comment.
Check mapping in Settings | Version control. If there is generic <Project> mapping, try changing it to explicit project path.
You also mentioned SVN plugin - is the project tracked by Subversion in addition to GIt?
Thanks Dmitriy,
Changing the Mapping worked like a charm.