修改 .gitignore 文件 立即生效

# 有时候需要突然修改 .gitignore 文件,随后要立即生效

git rm -r --cached . #清除缓存 git add . #重新trace file git commit -m "update .gitignore" #提交和注释 git push origin master #可选,如果需要同步到remote上的话
Talk is cheap, show me the code.
原文地址:https://www.cnblogs.com/cidgur/p/8927131.html