"git status" without untracked files
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.
Written by Franco Cedillo
Related protips
3 Responses
This will make developers to forget adding untracked files to repository, More broken builds. Thx But No Thx
Can better apply this tip "after you have added the files you want to commit"
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.