3 ms·
Ironically git actually supports TAR for this exact thing: git archive exports tar files. You can do a low depth to minimize that if you want (--depth=1 or som
by abritinthebay 11y ago
Ironically git actually supports TAR for this exact thing: git archive exports tar files.
You can do a low depth to minimize that if you want (--depth=1 or something like that if I remember correctly). You could just rm -rf the root .git directory after but that is a download bloat issue.
That said this should work:
git clone --depth=1 --branch=master git://myrepo && rm -rf myrepo/.git`
but.. yeah. Not really great.