Jan 9, 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.

Post a Comment

Featured Post

Setup Chinese Input Method in Ubuntu 17.10 Artful

sudo apt install ibus-sunpinyin After either of those commands do not forget to restart the IBus daemon ibus restart You might need t...