Skip to content

Instantly share code, notes, and snippets.

@Vivek205
Last active January 13, 2020 12:01
Show Gist options
  • Save Vivek205/f72ec77ac8bc0e7bee3001a52f4ce9b1 to your computer and use it in GitHub Desktop.
Save Vivek205/f72ec77ac8bc0e7bee3001a52f4ce9b1 to your computer and use it in GitHub Desktop.
Sync main repo and update the fork

Fetch the latest code from main repo
git fetch upstream

Checkout development branch in fork
git checkout development

Merge the latest code from main repo
git merge upstream/development

Push the development branch
git push

Checkout current branch
git checkout currentBranch

Merge latest code from the development branch
git merge development

Push the latest code to raise PR
git push

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment