Skip to content

Instantly share code, notes, and snippets.

@MatejBransky
Created September 20, 2021 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MatejBransky/bb2a8cd85be28d5aa07dc49d13b347e6 to your computer and use it in GitHub Desktop.
Save MatejBransky/bb2a8cd85be28d5aa07dc49d13b347e6 to your computer and use it in GitHub Desktop.
Git - keep a feature branch up to date with the master/main branch
git checkout main
git pull
git checkout <feature-branch>
git rebase -Xours master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment