From 249dc14aef6499236d89305d3ed401ae51c96d24 Mon Sep 17 00:00:00 2001 From: leedongmyung Date: Sat, 22 Nov 2025 11:03:40 +0900 Subject: [PATCH] =?UTF-8?q?git=20push=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/oto/commands/git/git.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/oto/commands/git/git.dart b/lib/oto/commands/git/git.dart index 216f9ee..7226622 100644 --- a/lib/oto/commands/git/git.dart +++ b/lib/oto/commands/git/git.dart @@ -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!}'); }