I've just untargzipped some code and I want to add a whole bunch of files
at once to the repository and commit. Unfortunately git add doesn't have
a --quiet
flag and all that I/O to print every single file from the tarball
is slowing things down. How can I speed this operation up (by silencing
output from git add
?).
What I would like to do is:
git add . --quiet
Since this flag does not exist I've tried redirecting standard error:
git add . 2&> /dev/null
Unfortunately git strangely returns without adding any files when I do this.
How can I solve the problem?
Thanks.