1. 增加 .gitignore 文件,里面添加需要忽略的文件(file_not_wanted);

  2. 执行命令 git rm -r --cached .   注意,最后的点。不要省略。

  3. 最后重新将所有文件添加到追踪项。

    git add -A

    然后再 commit 即可。

  4. 最后重新将所有文件添加到追踪项。

    git add -A

    然后再 commit 即可。

相关文章:

  • 2021-09-23
  • 2021-08-03
  • 2022-12-23
  • 2021-08-25
  • 2021-08-04
猜你喜欢
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2021-12-05
相关资源
相似解决方案