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 --prefix=src-directory-name HEAD

When extracted all the files will be extracted inside a directory named src-directory-name in the current directory.

Feedback about page:

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

Table Of Contents