I am trying to quiet the git remote update command in my Ruby script.
I used the --quiet flags of other Git commands like git checkout [branch_name].
For some reason Git doesn't have that flag when doing a git remote update. Does anybody know any other way?
I have also tried to put the output to /dev/null like git checkout [branch_name] < /dev/null.
I am open to any Ruby or command line suggestions.
If you want output to go to /dev/null, use:
git checkout [branch_name] > /dev/null
or
git checkout [branch_name] &> /dev/null
The way you wrote it, you are expecting input from /dev/null.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With