Intellij 14.1 forgets which files have been modified on git project

Hi,

I'm using Intellij IDEA 14.1.4 on OpenSUSE 13.1 linux.  I recently changed from working on a svn-based project to a git hosted project.  I know virtually nothing about git command line and just use intellij's built in git tools.

The problem is the project frequently forgets which project files have been modified.  The files will become listed as black in the file tree, and do not appear when I go to VCS -> Show Changes View.  If I edit the file and modify a single character, then all the modifications to that file suddenly appear, it turns blue in the file tree and shows up in the Show Changes View.  I will go on to make other changes in other files, and at some point the same file will turn back to black in the tree and not show in the show changes view.

I've deleted/recreated my project and deleted the projected folder and re-checked out the files from git.  Rebuilding indexes has no effect.  Sometimes restarting will cause files to suddenly appear in the change list.  It happens on a minute by minute basis.  To the best of my knowledge no other program/process is touching my project files, and it doesn't happen to an svn based project I have on the same file system.  I've tried removing the git package from my linux system and that made no difference.

Any guesses as to what is going on?

2 comments
Comment actions Permalink

Hi George,

is there a single Git repository in your project, or there are several ones?

Please open IDEA Settings | Version Control and check that your Git repository root folder (or all of them if you have several) is registered correctly. If the word "<Project>" is set as the path of a root, please substitute it with exact path to the repository root and check if that helps.

(The Git repository root is the folder which contains the .git directory (which contains the Git repository)).

0
Comment actions Permalink

Thanks Kirill,

I had only a single git repository configured for my project, but the root was defined as <Project>.  I changed the <Project> value to the explict path of my project and the problems seem to have disappeared completely, so your suggestion was correct.

Much thanks!

0

Please sign in to leave a comment.