Ignore a file/directory

Git lets you ignore those files by assuming they are unchanged. This is done by running the

command. Once marking a file as such, git will completely ignore any changes on that file; they will not show up when running

or

, nor will they ever be committed.

To make git track the file again, simply run
git update-index --no-assume-unchanged path/to/file.txt.

To make a directory ignored:

After cding into the folder you want to assume is unchanged, you can do either this:

facebooktwitterlinkedinby feather

Leave a Reply