Skip to content

Instantly share code, notes, and snippets.

@SubZane
Created August 30, 2016 07:51
Show Gist options
  • Save SubZane/1579ad7572de836189c5c2d320ba9d2d to your computer and use it in GitHub Desktop.
Save SubZane/1579ad7572de836189c5c2d320ba9d2d to your computer and use it in GitHub Desktop.
update a fork
// Check out the branch you wish to merge to. Usually, you will merge into master.
git checkout master
// Pull the desired branch from the upstream repository. This method will retain the commit history without modification.
git pull https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git BRANCH_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment