Skip to content

Commit

Permalink
feat(creat-branch): use switch cmd to create new branch
Browse files Browse the repository at this point in the history
use `switch` cmd to create new branch

close #20

Signed-off-by: mritd <[email protected]>
  • Loading branch information
mritd committed Jan 9, 2022
1 parent b656f7a commit 054b71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_wapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func createBranch(name string) (string, error) {
return "", err
}

return git("checkout", "-b", name)
return git("switch", "-c", name)
}

func commit(msg commitMsg) error {
Expand Down

0 comments on commit 054b71d

Please sign in to comment.