Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to download zip/tar Git repositories from Github and get not just the source but also the .git directory.

I'm aware I could use git clone, but this is for an tool that runs on systems that may not necessarily have git installed. Zipped repos are downloaded (doesn't require git) and after that I would like the .git directory there so users who do have git have a fully working git repo and can start branching, etc.

Anybody know of a Github endpoint or flag that includes the .git dir in zips?

share|improve this question
relevant? – Raystafarian Feb 8 '14 at 12:01
Interesting that svn can be used here, though users without Git installed are unlikely to have SVN either. Perhaps I'll just make Git a requirement. – dghubble Feb 11 '14 at 10:31

You must log in to answer this question.

Browse other questions tagged .