diff --git a/src/commands/commit.ts b/src/commands/commit.ts index 72e840f..4e8a410 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -51,7 +51,7 @@ ${chalk.grey('——————————————————')}` message: 'Do you want to run `git push`?' }); - if (isPushConfirmedByUser) { + if (isPushConfirmedByUser && !isCancel(isPushConfirmedByUser)) { const { stdout } = await execa('git', ['push']); outro(`${chalk.green('✔')} successfully pushed all commits`); outro(stdout);