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

83 views Asked by At

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
> _
1

There are 1 answers

2
torek On BEST ANSWER

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