summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/great-colts-accept.md5
-rw-r--r--packages/create-astro/src/index.ts12
2 files changed, 16 insertions, 1 deletions
diff --git a/.changeset/great-colts-accept.md b/.changeset/great-colts-accept.md
new file mode 100644
index 000000000..7820f4536
--- /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 5090a6c1c..38c6286f1 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);