Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 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 at 10:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.