MCPcopy
hub / github.com/jesseduffield/lazygit / NewBranch

Method NewBranch

pkg/integration/components/shell.go:137–139  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

135}
136
137func (self *Shell) NewBranch(name string) *Shell {
138 return self.RunCommand([]string{"git", "checkout", "-b", name})
139}
140
141func (self *Shell) NewBranchFrom(name string, from string) *Shell {
142 return self.RunCommand([]string{"git", "checkout", "-b", name, from})

Calls 1

RunCommandMethod · 0.95

Tested by

no test coverage detected