Yet another tool to dump a git repository from a website.
Yet another tool to dump a git repository from a website. Code structure and console outputs heavily inspired by arthaud/git-dumper.
usage: goop [flags] url [dir]
Flags: -f, --force overrides DIR if it already exists -h, --help help for goop
$ goop example.com
GO111MODULE=on go get -u github.com/deletescape/goop
The tool will first check if directory listing is available. If it is, then it will just recursively download the .git directory (what you would do with
If directory listing is not available, it will use several methods to find as many files as possible. Step by step, git-dumper will: * Fetch all common files (
.git/index, etc.); * Find as many refs as possible (such as
refs/remotes/origin/HEAD, etc.) by analyzing
.git/packed-refsand so on; * Find as many objects (sha1) as possible by analyzing
.git/logs/*; * Fetch all objects recursively, analyzing each commits to find their parents; * Run
git checkout .to recover the current working tree