0-la0a
Last Updated: February 25, 2016
·
366
· ieldanr

Ignore local repository files in git

git

Sometimes, we have files on our local git repositories that clutter your git status command.

One solution is to add the file names to the .gitignore file in our local repository. Beware, that this will make an update to the .gitignore file which is meant to be shared with the rest of your project members.

If you want git to ignore some files only locally. You need to add the file names to the .git/info/exclude file. This is the file to change if you want local ignores.

And voilà! git status command now is clean of clutter!