Git: Cómo obtener una instantánea de un repositorio git
Estoy buscando la forma correcta de obtener un archivo de un repositorio git sin el .git / directory para enviar una instantánea diaria a los evaluadores.
32
2 answers
git archive HEAD --format=zip > archive.zip
Esto hace lo que dice en la lata.
Más información aquí: 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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-03-05 17:50:04
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2009-03-05 17:50:04
Esto resultará en archivo.alquitrán.gz y añadir un prefijo dir llamado "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/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-27 11:50:25
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-27 11:50:25