mardi, juin 18, 2013

Git basic


Creer une archive zip à partir d'un tag ou d'une branche

git archive --format zip --prefix=root_folder_name/ --output /full/path/to/zipfile.zip TAG_NAME|BRANCH_NAME

Exemple avec projet hemeshgui pour creer une archive de release d'une v0.3-alpha
cd hemeshgui
git archive --format zip --prefix=hemeshgui/ --output ../hemeshgui-v0.3-alpha.zip v0.3-alpha
---------------------------------

Aucun commentaire: