MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / create_branch

Method create_branch

tests/utils.py:66–70  ·  view source on GitHub ↗

Create a new branch.

(self, name: str)

Source from the content-addressed store, hash-verified

64 self.tick()
65
66 def create_branch(self, name: str) -> None:
67 """Create a new branch."""
68 c = cmd.run(["git", "branch", name])
69 if c.return_code != 0:
70 raise exceptions.GitCommandError(c.err)
71
72 def switch_branch(self, branch: str) -> None:
73 """Switch to given branch."""

Calls

no outgoing calls