diff --git a/lib/platform/git/storage.js b/lib/platform/git/storage.js
index c19e00e0f92a2ffe734ae7b75aaeebbc4596746a..e4b400e8b13467a75e2554fdd70ccecdcb75d530 100644
--- a/lib/platform/git/storage.js
+++ b/lib/platform/git/storage.js
@@ -8,6 +8,7 @@ const convertHrtime = require('convert-hrtime');
 class Storage {
   constructor() {
     let config = {};
+    /** @type {Git.SimpleGit} */
     let git = null;
     let cwd = null;
 
@@ -157,7 +158,7 @@ class Storage {
       await git.reset('hard');
       await git.raw(['clean', '-fd']);
       await git.checkout(['-B', branchName, sha]);
-      await git.push(['origin', branchName, '--force']);
+      await git.push('origin', branchName, { '--force': true });
       config.branchExists[branchName] = true;
     }
 
@@ -347,12 +348,10 @@ class Storage {
           }
         }
         await git.commit(message);
-        await git.push([
-          'origin',
-          `${branchName}:${branchName}`,
-          '--force',
-          '-u',
-        ]);
+        await git.push('origin', `${branchName}:${branchName}`, {
+          '--force': true,
+          '-u': true,
+        });
       } catch (err) /* istanbul ignore next */ {
         logger.debug({ err }, 'Error commiting files');
         if (err.message.includes('.github/main.workflow')) {
@@ -369,28 +368,28 @@ class Storage {
 
     function cleanRepo() {}
   }
+
+  static getUrl({ gitFs, auth, hostname, host, repository }) {
+    let protocol = gitFs || 'https';
+    // istanbul ignore if
+    if (protocol.toString() === 'true') {
+      protocol = 'https';
+    }
+    if (protocol === 'ssh') {
+      return `git@${hostname}:${repository}.git`;
+    }
+    return URL.format({
+      protocol,
+      auth,
+      hostname,
+      host,
+      pathname: repository + '.git',
+    });
+  }
 }
 
 function localName(branchName) {
   return branchName.replace(/^origin\//, '');
 }
 
-Storage.getUrl = ({ gitFs, auth, hostname, host, repository }) => {
-  let protocol = gitFs || 'https';
-  // istanbul ignore if
-  if (protocol.toString() === 'true') {
-    protocol = 'https';
-  }
-  if (protocol === 'ssh') {
-    return `git@${hostname}:${repository}.git`;
-  }
-  return URL.format({
-    protocol,
-    auth,
-    hostname,
-    host,
-    pathname: repository + '.git',
-  });
-};
-
 module.exports = Storage;