vfvwmg
Last Updated: November 13, 2016
·
4.152K
· adagio

"git status" without untracked files

git

When having several untracked files within your git local repository, "git status" outputs a big chunk of lines.

After you have added the files you want to commit, those lines are irrelevant. Get rid of those lines with -uno parameter, do it in the following way:

git status -uno

"-uno" comes from "--untracked-files=no"

Don't worry about untracked files, they won't be deleted. They are only hidden from "git status" output.

3 Responses
Add your response

7508

This will make developers to forget adding untracked files to repository, More broken builds. Thx But No Thx

over 1 year ago ·
7523

Can better apply this tip "after you have added the files you want to commit"

over 1 year ago ·
16833

That may be very occasionally useful but I cannot see any good reason to often have untracked files not excluded by .gitignore. As said above, developers already happen to forget files in their commits, such an option will get it worse.

over 1 year ago ·