Create an archive of git repository with directory prefix
suggest changeIt 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents