Skip to content

Instantly share code, notes, and snippets.

@vikram7
Last active January 4, 2016 17:33
Show Gist options
  • Save vikram7/e677aa31de2e446d969c to your computer and use it in GitHub Desktop.
Save vikram7/e677aa31de2e446d969c to your computer and use it in GitHub Desktop.
forking and sync'ng a repo
  • Fork a repo on github

  • Git clone the forked version

  • Set the remotes (origin and upstream)

git remote set-url origin [[email protected]:vikram7/guides.git] (forked git url)
git remote add upstream [[email protected]:emberjs/guides.git] (base git url)

Syncing

git fetch upstream
git checkout master
git merge upstream/master

Push up to forked version

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