I had to modify application.xml to deploy the application locally, and this change shouldn't be pushed to repository. Now the problem is, this change is always present in Changes not staged for commit and I couldn't use use git add .
when committing changes.
One solution would be to add this file to .gitignore, but this just replicates the same problem to target .gitignore file, as application.xml shouldn't be ignored globally.
I tried also to add it to exclude file, but it didn't seem to work, probably because file is already tracked.
Does git provide some convenient tool to handle situations like this. It should be also possible to be able to switch branches retaining those locally untracked changes, and still pull latest version of this file if someone else changed it.