I have a NetBeans file \"nbproject/project.properties\" that always shows up in the \"Changes not staged for commit\" section (when I do git status). How co
You could update your index:
cd /root/folder/of/your/repo
git update-index --assume-unchanged nbproject/project.properties
and make sure it never shows as "updated" in your current repo.
That means it won't ever be pushed, but it is still present in the index.
(and it can be modified at will in your local working tree).
git update-index --no-assume-unchanged <file>
git ls-files -v | grep '^h '