Reputation: 1173
I need to automatically pull down a compressed version of my repo with a python script. What would be the best way to do this?
As far as I know the archive command in git does not support remote repos
Upvotes: 0
Views: 272
Reputation: 12679
Examples
Create a tar archive that contains the contents of the latest commit on the current branch, and extract it in the /var/tmp/junk directory :
git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ && tar xf -)
... on github :
wget https://github.com/lgs/grokphoto/tarball/master
Upvotes: 0
Reputation: 69505
From man git archive:
--remote=<repo>
Instead of making a tar archive from the local repository, retrieve a tar archive from a remote repository.
Upvotes: 4