git已提交的文件如何忽略

1年前 (2024-07-26)学习586

直接在.gitignore文件中添加忽略文件不起作用,需要先执行以下命令

git rm -r --cached .

然后重新提交才行

git add .

提交

git commit -m 重新提交

push

git push

扫描二维码推送至手机访问。

版权声明:本文由星光下的赶路人发布,如需转载请注明出处。

本文链接:https://forstyle.cc/zblog/post/27.html

分享给朋友: