how to overwrite with a git push, overwrite changes to the git server? how to overwrite with a git push, overwrite changes to the git server? heroku heroku

how to overwrite with a git push, overwrite changes to the git server?


Just do git push -f ( force push )

Pushing to heroku might be one of the valid use cases for git push -f, but still be careful and understand what you are doing.