Skip to content

Instantly share code, notes, and snippets.

@upkarlidder
Forked from ericoporto/forkMyself.md
Created June 30, 2017 17:44
Show Gist options
  • Save upkarlidder/98cac7517ea538330a44449fa613a6a2 to your computer and use it in GitHub Desktop.
Save upkarlidder/98cac7517ea538330a44449fa613a6a2 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