GIT-GRAB(1) General Commands Manual GIT-GRAB(1)

git-grabclone git repositories to a standard location

git-grab [-chnpV] URL ... [-- git arguments ...]

The git-grab utility clones git repositories to a standard location, organised by domain name and path. Pass one or more URL to clone. Arguments for git may be supplied after --.

The following options are available:

--clipboard
Paste a URL to clone from the clipboard.
The directory to use as "grab home", where the URLs will be cloned into. Overrides the GRAB_HOME environment variable if set.
--copy-path
Copy the local destination path to clipboard after cloning. If more than one URL is supplied the path of the last one is copied.
--dry-run
Don't clone repositories, but print what would be done.
--help
Display a help message and exit.
--version
Display version information and exit.

The base directory to clone into. If the variable GRAB_HOME is not set, ~/src is used.
If set, copy the local destination path to the clipboard after cloning. (equivalent to [--copy-path])

The git-grab utility exits 0 on success, and >0 if an error occurs.

git-clone(1)

The git-grab utility is inspired by grab by Jeff Hodges. This implementation was written from scratch by Wesley Moore.

January 5, 2026 Linux 6.17.9-arch1-1