Skip to content

Commit

Permalink
Enhance git repository creating commands (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
HajMo authored Apr 26, 2021
1 parent 2b32842 commit d53075e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,10 @@ protected function createRepository(string $directory, InputInterface $input, Ou
$branch = $input->getOption('branch') ?: 'main';

$commands = [
"git init -q -b {$branch} .",
'git init -q',
'git add .',
'git commit -q -m "Set up a fresh Laravel app"',
"git branch -M {$branch}",
];

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

0 comments on commit d53075e

Please sign in to comment.