Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit 6fda647

Browse files
committed
add initial commit when git repo is initialized
1 parent 3261b46 commit 6fda647

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/functions.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ export async function initGit(options) {
8787
if (result.failed) {
8888
return Promise.reject(new Error("Failed to initialize git"));
8989
}
90+
91+
await execa("git", ["add", "-A"], {
92+
cwd: options.targetDirectory,
93+
});
94+
95+
await execa("git", ["commit", "-m", "Inital commit from Create DJS App"], {
96+
cwd: options.targetDirectory,
97+
});
98+
9099
return;
91100
}
92101

0 commit comments

Comments
 (0)