忽略跟踪:
git update-index --assume-unchanged /path/to/file
恢复跟踪:
git update-index --no-assume-unchanged /path/to/file
查看已忽略的文件列表:
git ls-files -v | findstr /B ^h (Windows)
git ls-files -v | grep '^h' (Mac)
关闭core.autocrlf:
git config --global core.autocrlf false