Skip to content

Latest commit

 

History

History

git-archive

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

git archive

Create an archive file of everything in the repo

Git alias:

archive = !"f() { \
    top=$(rev-parse --show-toplevel); \
    cd $top; \
    tar cvf $top.tar $top ; \
}; f"

Example:

git archive

This archive can be useful for backups, disaster recovery, legal auditing, or sending the repo as a file to someone.