Skip to content

Instantly share code, notes, and snippets.

@plamber
Created March 27, 2021 05:23
Show Gist options
  • Save plamber/3e0948b590eb10904acc96629936a8a8 to your computer and use it in GitHub Desktop.
Save plamber/3e0948b590eb10904acc96629936a8a8 to your computer and use it in GitHub Desktop.
Updating your branch
# 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