GRAB_HOME
The base directory to clone into. If the variable GRAB_HOME is not set, ~/src is used.
Clone 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:
-c, --clipboard
Paste a URL to clone from the clipboard.
--home
The directory to use as "grab home", where the URLs will be cloned into. Overrides the GRAB_HOME environment variable if set.
-p, --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.
-n, --dry-run
Don't clone repositories, but print what would be done.
-h, --help
Display a help message and exit.
-V, --version
Display version information and exit.
GRAB_HOME
The base directory to clone into. If the variable GRAB_HOME is not set, ~/src is used.
GRAB_COPY_PATH
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.