[Git] – How to update your fork branch and put your PR on top of the changes?

The following the commands to do that.

$git checkout ( E.g master )

$git fetch upstream

$git pull upstream ( E.g master )

$git checkout  ( E.g branch where is your PR )

$git rebase ( E.g master )

$git push origin + // force push

Leave a comment