git push 개선
This commit is contained in:
parent
b88c44533c
commit
249dc14aef
1 changed files with 2 additions and 1 deletions
|
|
@ -57,7 +57,8 @@ class GitPush extends Command {
|
|||
if (data.branch == null) {
|
||||
shell.write(' $and git push');
|
||||
} else {
|
||||
shell.write(' $and git switch -c ${data.branch!}');
|
||||
shell.write(
|
||||
' $and git switch -c ${data.branch!} || git switch ${data.branch!}');
|
||||
shell.write(' $and git push origin ${data.branch!}');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue