项目中一些需要在本地修改,又不能写进.gitignore中,就需要通过命令了

百度搜索了一下,几乎前篇一律的修改.gitignore。但是好像不起什么作用

忽略

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

取消忽略

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

 

相关文章: