Skip to content

Stop git from showing unrelated files

If you have a lot of files you’re not going to check in, git’s default behavior of showing untracked files can get cluttersome (new word I just made up).

Doing the following suppresses this behavior:

git config status.showUntrackedFiles no

In the git-config man page, it shows it as case-sensitive, but I tried it all lowercase and it works.

Now, by default, git status won’t show untracked files. You can show untracked files with a -u switch. Git thoughtfully lets you know this possibility with a line at the end of the status output.

Be the first to like.

Post a Comment

Your email is never published nor shared. Required fields are marked *