git 不再追踪文件和目录

不再跟踪文件

添加到 .gitignore

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

不再跟踪目录

  1. 目录加入到.gitignore

    /logs/
  2. 删除原有的跟踪

    git rm -r --cached logs

此处评论已关闭