git rm --cached logs/xx.log
然后更新 .gitignore 忽略掉目标文件,
.gitignore
最后 git commit -m "We really don't want Git to track this anymore!"
git commit -m "We really don't want Git to track this anymore!"