def check_branch!(name = "main")
    out = run("git rev-parse --abbrev-ref HEAD")
    raise "Must be on main branch. Branch: #{out}" unless out == name
  end
Raises an error if not on the designated branch