Sep 14, 2018

Copy git repository without git information


git archive --format=tar HEAD | (cd ../now && tar xf -)
Create a tar archive that contains the contents of the latest commit on the current branch, and extract it in the../now directory.
Creates an archive of the specified format containing the tree structure for the named tree, and writes it out to the standard output. If <prefix> is specified it is prepended to the filenames in the archive.