修改 .gitignore 文件 立即生效

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

git rm -r --cached . #清除缓存 git add . #重新trace file git commit -m "update .gitignore" #提交和注释 git push origin master #可选,如果需要同步到remote上的话

 

posted @ 2018-04-24 11:30  cidgur  阅读(11031)  评论(2编辑  收藏  举报