Last active
April 12, 2021 08:35
-
-
Save thisisnic/f62c3c4660d74bacb70a8b0c4e5311ae to your computer and use it in GitHub Desktop.
git rebase when you have a PR open on my-branch but the upstream/master branch has new commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# checkout the branch you're working on | |
git checkout my-branch | |
# fetch all branches from the upstream repo | |
git fetch upstream | |
# rebase your changes on top of the upstream master branch | |
git rebase upstream/master | |
# force push your changes to your branch | |
git push --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment