如果我们不小心将某个文件加入了 git 版本控制,但是突然又不想继续跟踪控制这个文件了,怎么办呢?

使用 git update-index 即可。

不想继续追踪某个文件

git update-index --assume-unchanged your_file_path

如果想再次继续跟踪某个文件

git update-index --no-assume-unchanged your_file_path

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-11-20
  • 2021-05-20
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-09-29
  • 2021-11-19
相关资源
相似解决方案