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

本文详细介绍了如何使用Git的`git update-index --assume-unchanged`和`git update-index --no-assume-unchanged`命令来管理忽略已跟踪的文件,并提供了实践指导和相关资源链接。
848

被折叠的 条评论
为什么被折叠?



