git push 개선

This commit is contained in:
leedongmyung 2025-11-22 11:03:40 +09:00
parent b88c44533c
commit 249dc14aef

View file

@ -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!}');
}