git push -f
to force update the remote branch, overwriting it using the local branch's changes.git push -f
git checkout patch-1 git pull git rebase master # Local `patch-1` branch has been rebased onto `master`, thus diverging # from the remote `patch-1` branch git push -f # Force update the remote `patch-1` branch
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️