diff --git a/dist/index.js b/dist/index.js
index b0db713..0842b69 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -711,6 +711,7 @@ class GitCommandManager {
     }
     init() {
         return __awaiter(this, void 0, void 0, function* () {
+            yield this.config('init.defaultBranch', 'main', true, true);
             yield this.execGit(['init', this.workingDirectory]);
         });
     }
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index 8e42a38..1a12858 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -328,6 +328,7 @@ class GitCommandManager {
   }
 
   async init(): Promise<void> {
+    await this.config('init.defaultBranch', 'main', true, true)
     await this.execGit(['init', this.workingDirectory])
   }