Ignore local repository files in 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!
Written by Daniel Rios
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#