修改 .gitignore 文件 立即生效
2021-06-24 本文已影响0人
我一直都在
有时候需要突然修改 .gitignore 文件,随后要立即生效
#清除缓存
git rm -r --cached .
#重新trace file
git add .
#提交和注释
git commit -m "update .gitignore"
#可选,如果需要同步到remote上的话
git push origin master