def METHOD_NAME(self, branch):
    """
    Tries to checkout a branch.
    Add '-q' option because git checkout will
    return its confirmation message on stderr.
    May raise a GitError exception"""
    self._run_command('checkout', ['-q', branch])