Silence the stderr on single argument git commands

If you are not in a git directory and you try to git init, the check of
whether the branch exists or not will throw an error.