Git: Comment obtenir un instantané d'un référentiel git
Question
Je cherche le bon moyen de créer une archive d'un référentiel git sans le répertoire .git / afin d'envoyer un instantané quotidien aux testeurs.
La solution
git archive HEAD --format=zip > archive.zip
Cela fait ce qui est écrit sur l'étain.
Plus d'infos ici: http://gitready.com/ intermediaire / 2009/01/29 / export-your-repository.html
Autres conseils
Ceci aboutira à archive.tar.gz et ajoutera un préfixe nommé "préfixe-dir":
git archive --prefix=prefix-dir/ -o archive.tar HEAD
gzip archive.tar
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow