vfvwmg
Last Updated: November 13, 2016
·
2.783K
· adagio
40a620a46c34d1ce3fda330c3ef568c3

"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.

Say Thanks
Respond

3 Responses
Add your response

7508
736212 10200976756252420 836055407 o

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

over 1 year ago ·
7523
40a620a46c34d1ce3fda330c3ef568c3

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

over 1 year ago ·
16833
8c29cd63479505949897dffa767f49eb

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 ·
Filed Under