diff --git a/.gitignore b/.gitignore index 8f4e16c..ae8cbd3 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,4 @@ release/ # End of https://www.toptal.com/developers/gitignore/api/dart,visualstudiocode assets/data/app_data.json +.DS_Store diff --git a/lib/oto/commands/git/git.dart b/lib/oto/commands/git/git.dart index ada0311..216f9ee 100644 --- a/lib/oto/commands/git/git.dart +++ b/lib/oto/commands/git/git.dart @@ -57,6 +57,7 @@ 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 push origin ${data.branch!}'); }