Skip to content

Recursively archive a git repo with submodules. In bash, obviously.

License

Notifications You must be signed in to change notification settings

ambakshi/git-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-archiver

A git subcommand to recursively archive a repo containing
submodules. The git clones of the bare repos are cached
in --git-base (default: $HOME/.git-archiver/repos)

$ cd my-repo && git-archiver HEAD > out.tar
$ git-archiver --git-dir=my-repo master > master.tar
$ git-archiver --git-dir=my-repo develop:sub/dir > subdir.tar
$ git-archiver --git-dir=my-repo --skip-fix | tar xi -C /path/to/extract
$ git-archiver --git-dir=my-repo | gzip | tar zx -C /path/to/extract

Amit Bakshi [email protected] 4/30/2013

About

Recursively archive a git repo with submodules. In bash, obviously.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages