git rm -r --cached . #清除缓存 git add . #重新trace file git commit -m "update .gitignore" #提交和注释 git push origin master #可选,如果需要同步到remote上的话
修改 .gitignore 文件 立即生效
猜你喜欢
转载自blog.csdn.net/qq_33718648/article/details/104914092
今日推荐
周排行