Added return values for git-related operations.
Got more of the commands to return sane values.