不再跟踪文件

添加到 .gitignore

1
git rm --cached project.private.config.json

不再跟踪目录

  1. 目录加入到.gitignore
1
/logs/
  1. 删除原有的跟踪
1
git rm -r --cached logs