Skip to content

Commit

Permalink
feat(git): set main as initial branch
Browse files Browse the repository at this point in the history
  • Loading branch information
leon19 committed Feb 20, 2024
1 parent 16f8516 commit 784862d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/app/TsNodeStarterApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class TsNodeStarterApp extends Generator {
this.log();

this.log(chalk.green('> Initializing git...'));
this.spawnSync('git', ['init', '--quiet']);
this.spawnSync('git', ['init', '--quiet', '--initial-branch', 'main']);
}

writing(): void {
Expand Down

0 comments on commit 784862d

Please sign in to comment.