# File lib/git-up.rb, line 208 def checkout(branch_name) output = repo.git.checkout({}, branch_name) unless on_branch?(branch_name) raise GitError.new("Failed to checkout #{branch_name}", output) end end