codekiddy
codekiddy

Reputation: 6137

git status - don't show untracked files

Is there an option to git status so that untracked files won't be shown?

I tried git status -u no but that hides everything and tells:

"nothing to commit, working directory clean"

even thouh there are files both staged for commit and not staged for commit.

I want it to show only files staged for commit and modified ones but skip untracked files.

Upvotes: 9

Views: 3278

Answers (1)

Crowman
Crowman

Reputation: 25936

You need:

git status -uno

i.e., without the space, or:

git status --untracked-files=no

Upvotes: 15

Related Questions