Skip to content

Instantly share code, notes, and snippets.

@ammgws
Created March 27, 2017 15:01
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 ammgws/7ae0f87b295dde5c41acc0cac01bc9ae to your computer and use it in GitHub Desktop.
Save ammgws/7ae0f87b295dde5c41acc0cac01bc9ae to your computer and use it in GitHub Desktop.
how to fork a nongithub repo
  • Create a new, empty repository on GitHub

  • Clone the created repository
    git clone https://github.com/username/repository.git

  • Fetch the contents of the original repository

cd repository
git remote add upstream git://url.com/remote_repository.git
git fetch upstream
git merge upstream/master
  • Push contents to new repository
    git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment