Push a rebased local branch by using `--force-with-lease`

Share this video with your friends

Send Tweet

When you update your local feature branch using git rebase, you’re rewriting the history. As such, when trying to update your remote branch counterpart using git pull you will be rejected. In this lesson we’re going to have a look how to use the --force and --force-with-lease to force an update of the remote branch.