I often find myself leaving out a change set of local changes that I don’t want to check in. In Idea, you can add them to a separate change list of local changes and ignore them from commits. On the command line, you can do a local ignore/untrack of a file, whithout using .gitignore. Useful if your .gitignore is also itself checked into git.
nelanka@hydra:/Projects/booking> git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .idea/runConfigurations/Booking_Service.xml
modified: .idea/runConfigurations/Sample_Client.xml
no changes added to commit (use "git add" and/or "git commit -a")
nelanka@hydra:/Projects/booking>
nelanka@hydra:/Projects/booking> git update-index --assume-unchanged .idea/runConfigurations/Booking_Service.xml
nelanka@hydra:/Projects/booking> git update-index --assume-unchanged .idea/runConfigurations/Sample_Client.xml
nelanka@hydra:/Projects/booking> git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
nelanka@hydra:/Projects/booking> git update-index --no-assume-unchanged.idea/runConfigurations/Sample_Client.xml
nelanka@hydra:/Projects/booking> git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .idea/runConfigurations/Sample_Client.xml
no changes added to commit (use "git add" and/or "git commit -a")
exactly what I was looking for, thanks!