Git: jak uzyskać migawkę repozytorium git

Szukam odpowiedniego sposobu na uzyskanie archiwum z repozytorium git bezGit / directory w celu wysyłania codziennych migawek do testerów.

Author: blueyed, 2009-03-05

2 answers

git archive HEAD --format=zip > archive.zip
To robi to, co jest napisane na puszce.

Więcej informacji tutaj: http://gitready.com/intermediate/2009/01/29/exporting-your-repository.html

 46
Author: jonnii,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2009-03-05 17:50:04

Spowoduje to utworzenie archiwum.smoła.gz i dodać prefiks dir o nazwie "prefix-dir":

git archive --prefix=prefix-dir/ -o archive.tar HEAD
gzip archive.tar
 12
Author: blueyed,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2011-05-27 11:50:25