Skip to content

Commit 1366f6f

Browse files
authored
Update NewCommand.php (#238)
1 parent d81522d commit 1366f6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/NewCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,7 @@ protected function pushToGitHub(string $name, string $directory, InputInterface
289289
$branch = $input->getOption('branch') ?: $this->defaultBranch();
290290

291291
$commands = [
292-
"gh repo create {$name} --source=. {$flags}",
293-
"git -c credential.helper= -c credential.helper='!gh auth git-credential' push -q -u origin {$branch}",
292+
"gh repo create {$name} --source=. --push {$flags}",
294293
];
295294

296295
$this->runCommands($commands, $input, $output, ['GIT_TERMINAL_PROMPT' => 0]);

0 commit comments

Comments
 (0)