git push to branch name code example Example 1: git push origin master --force git push origin --force Example 2: git push specific branch $ git push <remote> <branch>