feat(commit.ts): add '-u origin HEAD' flag to 'git push' command to set upstream branch and push current branch to it

This commit is contained in:
di-sukharev
2023-03-15 14:46:15 +08:00
parent 913bcd379f
commit bd8de7a8ea
+1 -1
View File
@@ -56,7 +56,7 @@ ${chalk.grey('——————————————————')}`
const pushSpinner = spinner();
pushSpinner.start('Running `git push`');
const { stdout } = await execa('git', ['push']);
const { stdout } = await execa('git', ['push', '-u', 'origin', 'HEAD']);
pushSpinner.stop(`${chalk.green('✔')} successfully pushed all commits`);
if (stdout) outro(stdout);