# Undo the last commit locally git rebase -i HEAD~1 # Push to update the remote branch git push --force