Quiet git remote update?

git, ruby

Solution

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

Problem

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.

Original source