Skip to content

Commit 054b71d

Browse files
committed
feat(creat-branch): use switch cmd to create new branch
use `switch` cmd to create new branch close #20 Signed-off-by: mritd <[email protected]>
1 parent b656f7a commit 054b71d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_wapper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func createBranch(name string) (string, error) {
1717
return "", err
1818
}
1919

20-
return git("checkout", "-b", name)
20+
return git("switch", "-c", name)
2121
}
2222

2323
func commit(msg commitMsg) error {

0 commit comments

Comments
 (0)