lundi 16 juillet 2018

Use git archive from a subdirectory to archive whole project tree

I'm tired of saying (cd ../../.. && git archive HEAD) | (cd /var/www/html/ && tar xf -) #testing-on-prod. Is there a way to cut out the initial cd, specifying that I want the whole tree archived and not just the current working directory?

Aucun commentaire:

Enregistrer un commentaire