Make git ignore changes to files
Just another nice feature of
git(1) that I always forget about when I
need it (it just happened)… posting it here, in the hope that it’ll
get stuck in my head.
This will make git to stop tracking the changes to the given file, even if it has already been added to the repository index.
To revert it:
And voilà, as if nothing ever happened.