git ignore modified files

git update-index --assume-unchanged -- path /to/file      # 启用忽略
git update-index --no-assume-unchanged -- path /to/file   # 停用忽略

点击打开链接https://help.github.com/articles/ignoring-files

点击打开链接http://loveky2012.blogspot.com/2012/09/ignore-file-in-git-that-has-already-been-tracked.html

你可能感兴趣的:(File)