git untrack file

git update-index should do what you want

This will tell git you want to start ignoring the changes to the file

git update-index --assume-unchanged path/to/file

 

When you want to start keeping track again

git update-index --no-assume-unchanged path/to/file

  

 

posted @ 2017-07-21 16:00  佚名000  阅读(1089)  评论(0编辑  收藏  举报