diff --git a/lib/git.js b/lib/git.js index 58340830..58ab32da 100644 --- a/lib/git.js +++ b/lib/git.js @@ -56,7 +56,7 @@ function generateBranch(action) { yield execute_1.execute(`git checkout --orphan ${action.branch}`, action.workspace); yield execute_1.execute(`git reset --hard`, action.workspace); yield execute_1.execute(`git commit --allow-empty -m "Initial ${action.branch} commit"`, action.workspace); - yield execute_1.execute(`git push ${action.repositoryPath} ${action.branch}`, action.workspace); + yield execute_1.execute(`git push --force ${action.repositoryPath} ${action.branch}`, action.workspace); yield execute_1.execute(`git fetch`, action.workspace); core_1.info(`Created the ${action.branch} branch… đŸ”§`); }