diff --git a/dist/index.js b/dist/index.js
index ddf2b3d..f232613 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -695,7 +695,11 @@ class GitCommandManager {
     }
     init() {
         return __awaiter(this, void 0, void 0, function* () {
-            yield this.execGit(['init', this.workingDirectory]);
+            yield this.execGit([
+                'init',
+                '--initial-branch=silence_warning_about_default_branch',
+                this.workingDirectory
+            ]);
         });
     }
     isDetached() {
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index 7752cfa..d464771 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -317,7 +317,11 @@ class GitCommandManager {
   }
 
   async init(): Promise<void> {
-    await this.execGit(['init', this.workingDirectory])
+    await this.execGit([
+      'init',
+      '--initial-branch=silence_warning_about_default_branch',
+      this.workingDirectory
+    ])
   }
 
   async isDetached(): Promise<boolean> {