Skip to content

Commit 41543d5

Browse files
authored
Improve Git push (#191)
1 parent 36b7431 commit 41543d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ protected function pushToGitHub(string $name, string $directory, InputInterface
266266

267267
$commands = [
268268
"gh repo create $name -y $flags",
269-
'git push -q -u origin main',
269+
"GIT_TERMINAL_PROMPT=0 git -c credential.helper= -c credential.helper='!gh auth git-credential' push -q -u origin main",
270270
];
271271

272272
$this->runCommands($commands, $input, $output);

0 commit comments

Comments
 (0)