diff --git a/lib/oto/commands/git/git.dart b/lib/oto/commands/git/git.dart index ab0a1c6..0451b05 100644 --- a/lib/oto/commands/git/git.dart +++ b/lib/oto/commands/git/git.dart @@ -53,6 +53,8 @@ class GitPull extends Command { var data = DataGitPush.fromJson(getParam(command)); var shell = StringBuffer(getCDPath(workspace)); + shell.write( + ' $and git switch -c ${data.branch!} || git switch ${data.branch!}'); shell.write(' $and git pull origin ${data.branch}'); var process =