ming_codes
ming_codes

Reputation: 2922

How to get `git add` to list files that's staged

How do I get git to echo what files that are being staged during git add command?

Something like this...

> git add app/
app/index.html added
> _

Upvotes: 0

Views: 70

Answers (1)

torek
torek

Reputation: 488183

Use:

git add -v

(or --verbose, same thing). For whatever reasons, git rm is always -v (in effect—it doesn't actually have a -v option) and requires -q to make it quiet, while git add is never verbose and requires -v to make it loud. (Or, with -n it doesn't actually add but is verbose.)

Upvotes: 2

Related Questions