Creare un archivio tar da un repository Git

From RVM Wiki
Jump to navigation Jump to search

Repository locale

git clone myrepo.url
cd myrepo
git archive --format=tar  --prefix=myrepo/ HEAD | gzip > ../myrepo.tar.gz

Repository remoto

NON va con github: usare il tasto Download==

git archive --remote=myrepo.url -format=tar  --prefix=myrepo/ HEAD | gzip > ../myrepo.tar.gz

Riferiemnti