How to push new (rewritten) history to remote repository May 7, 2023 by Tarik When faced with that problem, a force push has worked for me: git push --force origin fix