git忽略已经被提交的文件
git rm --cached logs/xx.log
然后更新 .gitignore
忽略掉目标文件,
最后 git commit -m "We really don‘t want Git to track this anymore!"
原文地址:https://www.cnblogs.com/ydymz/p/9388879.html
时间: 2024-11-05 10:20:21
git rm --cached logs/xx.log
然后更新 .gitignore
忽略掉目标文件,
最后 git commit -m "We really don‘t want Git to track this anymore!"
原文地址:https://www.cnblogs.com/ydymz/p/9388879.html