Skip to content

Instantly share code, notes, and snippets.

@mihaiserban
Created March 1, 2019 11:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mihaiserban/22026c46e835aee3636292787edaaea9 to your computer and use it in GitHub Desktop.
Save mihaiserban/22026c46e835aee3636292787edaaea9 to your computer and use it in GitHub Desktop.
Sync a github repo from the original fork
  1. Clone your favorite project:

git clone https://github.com/teleporthq/teleport-code-generators.git

  1. Add remonte branch:

git remote add --track master teleporthq https://github.com/teleporthq/teleport-code-generators.git

  1. Verify if the remote was added:

git remote

Should show: origin teleporthq

  1. Fetch updates from origin repo

git fetch teleporthq

  1. Merge the changes from origin repo into your fork

git merge teleporthq/master

  1. Push changes to your fork

git push

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