Git Archive

Backing up a whole branch, work tree or a commit could be achieved using the command archive {tree-ish} -o {output-archive}. {tree-ish} could be a tree ID (like branch or work tree) or a commit ID. The resulting archive could be in the format of tar or zip.

Links to this page
#git #backup