diff --git a/.changeset/great-colts-accept.md b/.changeset/great-colts-accept.md new file mode 100644 index 000000000000..7820f4536c62 --- /dev/null +++ b/.changeset/great-colts-accept.md @@ -0,0 +1,5 @@ +--- +'create-astro': patch +--- + +Prompt for git initialization last, so all configurations can get added to the initial commit diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index 5090a6c1c6b6..38c6286f1e6a 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -29,7 +29,17 @@ export async function main() { return; } - const steps = [intro, projectName, template, dependencies, git, typescript, next]; + const steps = [ + intro, + projectName, + template, + dependencies, + typescript, + + // Steps which write to files need to go above git + git, + next + ]; for (const step of steps) { await step(ctx);