From 8f458d69f0f2f1cba9c7aac6d18106127bfaff9f Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 2 Aug 2022 15:04:14 +0200 Subject: [PATCH] Update NewCommand.php --- src/NewCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 7e804137..9a47e81a 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -289,8 +289,7 @@ protected function pushToGitHub(string $name, string $directory, InputInterface $branch = $input->getOption('branch') ?: $this->defaultBranch(); $commands = [ - "gh repo create {$name} --source=. {$flags}", - "git -c credential.helper= -c credential.helper='!gh auth git-credential' push -q -u origin {$branch}", + "gh repo create {$name} --source=. --push {$flags}", ]; $this->runCommands($commands, $input, $output, ['GIT_TERMINAL_PROMPT' => 0]);