git update-index should do what you want

This will tell git you want to start ignoring the changes to the file

git update-index --assume-unchanged path/to/file

 

When you want to start keeping track again

git update-index --no-assume-unchanged path/to/file

  

 

相关文章:

  • 2021-05-16
  • 2021-11-23
  • 2022-02-10
  • 2021-06-15
  • 2021-07-17
  • 2022-12-23
  • 2021-09-21
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2021-10-13
  • 2022-01-15
  • 2021-09-15
相关资源
相似解决方案