0

There is a remote repository (not hosted on github) that I would like to clone to github. Is it possible for me to clone it to github directly without making a clone of it on my computer. If yes, How can I do this?

1 Answers1

1

The only way to get an existing repository onto GitHub is to either:

  1. Fork a repository that is already on GitHub, or
  2. Create a new repository on GitHub and git push your repository to it (instructions from GitHub here).
larsks
  • 277,717
  • 41
  • 399
  • 399
  • 3
    you might want to make it explicitly clear that what OP wants (create non-fork repo with contents without pushing -- aka "import external repo") is *not possible* on github – Nevik Rehnel Feb 09 '14 at 17:29
  • I think your comment takes care of that nicely :). Thanks! – larsks Feb 09 '14 at 17:53
  • I also agree with @NevikRehnel . Your answer include everything but what is asked. Anyway, I'll mark his comment as accepted comment. :) –  Feb 10 '14 at 13:21