You could update your index:

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 been 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 
git ls-files -v | grep '^h '
posted on 2016-10-13 16:51  jzfan  阅读(212)  评论(0编辑  收藏  举报