Created
March 27, 2021 05:23
-
-
Save plamber/3e0948b590eb10904acc96629936a8a8 to your computer and use it in GitHub Desktop.
Updating your branch
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
# assuming you are in the folder of your locally cloned fork.... | |
git checkout main | |
# assuming you have a remote named `upstream` pointing to the official **office365-cli** repo | |
git fetch upstream | |
# update your local main branch to be a mirror of what's in the main repo | |
git pull --rebase upstream main | |
# switch to your branch where you are working, say "issue-xyz" | |
git checkout issue-xyz | |
# update your branch to update its fork point to the current tip of main & put your changes on top of it | |
git rebase main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment