Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Last active July 17, 2017 13:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ericoporto/bf0fae93c09ac43d713cd1574043b065 to your computer and use it in GitHub Desktop.
Save ericoporto/bf0fae93c09ac43d713cd1574043b065 to your computer and use it in GitHub Desktop.
How to fork my own github repository.
  1. create a new repository in Github, don't add a readme or anything.

  2. clone it on your computer

  3. add the original repository (the one you want to fork) as upstream source.

    git remote add upstream [url]

  4. fetch and merge upstream.

    git fetch upstream & git merge upstream/master

Thanks to Mark Marijnissen

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