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
posted @ 2013-03-05 16:04  lein.wang  Views(169)  Comments(0Edit  收藏  举报