git push to overwrite branch in git lab code example Example: git force push to remote git push -f <remote> <branch> # example: git push -f origin master