Skip to content

Instantly share code, notes, and snippets.

@Yousha
Created January 22, 2019 20:29
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 Yousha/7bf2d1f81578c72e2978391c57ad4f0a to your computer and use it in GitHub Desktop.
Save Yousha/7bf2d1f81578c72e2978391c57ad4f0a to your computer and use it in GitHub Desktop.
Update forked(origin) repository from upstream
git clone git@github.com:myusername/myforkedrepo.git
git remote add upstream git://github.com/targetusername/targetrepo.git
git fetch upstream
git pull upstream master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment