Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 365 Bytes

ignore_changes_to_a_tracked_file.md

File metadata and controls

10 lines (7 loc) · 365 Bytes

Ignore changes to a tracked file

Files that should never be tracked are listed in your .gitignore file. But what about if you want to ignore some local changes to a tracked file?

You can tell git to assume the file is unchanged

git update-index --assume-unchanged <some-file>

Reversing the process can be done with the --no-assume-unchanged flag.