Create an archive of git repository with directory prefix

suggest change

It is considered good practice to use a prefix when creating git archives, so that extraction will place all files inside a directory. To create an archive of HEAD with a directory prefix:

git archive --output=archive-HEAD.zip --prefix=src-directory-name/ HEAD

--prefix must end with /. When extracted, the files are placed in a directory named src-directory-name in the current directory.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents