1. git rm --cached logs/xx.log,
1. git rm --cached logs/xx.log
2. 然後更新 .gitignore 忽略掉目標文件,
.gitignore
3. 最後 git commit -m "xxxx"
git commit -m "xxxx"