Skip to content

Commit 2732f23

Browse files
authored
fix(cli): default git init prompt to true on scaffold (#1650)
## Summary - Flip the default for the `Initialize a git repository with an initial commit?` prompt from `false` to `true`, matching the pre-commit hooks prompt and the typical expectation that scaffolded projects start as a git repo. Follow-up to #1484 (review comment: #1484 (comment)). <img width="1576" height="736" alt="image" src="https://github.com/user-attachments/assets/1edce33e-b559-40f4-826f-6f35bc77fe48" /> ## Test plan - [x] Scaffold a new project interactively and confirm the git-init prompt is preselected as Yes.
1 parent 5f5ce6e commit 2732f23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/utils/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export async function promptGitInit(options: {
228228
if (options.interactive) {
229229
const selected = await prompts.confirm({
230230
message: 'Initialize a git repository with an initial commit?',
231-
initialValue: false,
231+
initialValue: true,
232232
});
233233
if (prompts.isCancel(selected)) {
234234
cancelAndExit();

0 commit comments

Comments
 (0)