Description : Crée une archive des fichiers du dépôt.

Syntaxe : git archive [<options>] <tree-ish> [<path>...]

OptionDescriptionUtilisation principale
git archive <commit>Crée une archive tar du commit spécifiéExport d’une version
--format=<format>Spécifie le format (tar, zip, etc.)Archives dans différents formats
--output=<fichier>Nom du fichier de sortieSpécifier le nom d’archive
--prefix=<préfixe>Ajoute un préfixe aux chemins dans l’archiveOrganisation de l’archive