GIT-GRAB(1)

πŸ“¦ version 4.0.1, in arch rolling

✨ GIT-GRAB πŸ’…

okay so bestie, welcome to git-grab(1) β€” a page from the General Commands Manual, and honestly? it's giving "clone git repos to a standard location" main character energy πŸŽ€


🌸 NAME 🌸

git-grab β€” clone git repositories to a standard location πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸ‘‘ DESCRIPTION πŸ‘‘

ok so literally, the git-grab utility clones git repositories to a standard location, and it organises them by domain name and path πŸ—‚οΈβœ¨. You just pass one or more URL to clone, that's it, that's the whole vibe. And if you wanna hand extra arguments to git itself? Just drop them after -- and it slays 🫢

The following options are available:

  • -c, --clipboard β€” pastes a URL to clone from the clipboard πŸ“‹ (no cap, it just grabs it for you)
  • --home β€” the directory to use as "grab home", where the URLs will be cloned into πŸ’’. This one overrides the GRAB_HOME environment variable if it's set, periodt.
  • -p, --copy-path β€” copies the local destination path to the clipboard after cloning πŸŽ€. And heads up: if more than one URL is supplied, the path of the last one is the one that gets copied, iykyk.
  • -n, --dry-run β€” doesn't actually clone repositories, just prints what would be done πŸ‘€ (perfect for a vibe check before committing)
  • -h, --help β€” displays a help message and exits 🧚
  • -V, --version β€” displays version information and exits ⭐

🌈 ENVIRONMENT 🌈

  • GRAB_HOME β€” the base directory to clone into πŸ’œ. If the variable GRAB_HOME is not set, ~/src is used. That's the default, bestie.
  • GRAB_COPY_PATH β€” if it's set, copies the local destination path to the clipboard after cloning πŸ”₯ (equivalent to [--copy-path])

πŸ’€ EXIT STATUS πŸ’€

The git-grab utility exits 0 on success, and >0 if an error occurs 😭. So like, zero is the slay outcome.


πŸ“ SEE ALSO πŸ“

git-clone(1) β€” go check it out, it's iconic ✨


🧚 HISTORY 🧚

ok story time πŸ“–: the git-grab utility is inspired by grab by Jeff Hodges. This implementation was written from scratch by Wesley Moore πŸ‘‘. Obsessed, honestly.


ngl bestie, that's the whole page β€” every flag, every env var, every exit code, all of it πŸ’…

mwah πŸ’– stay cloned, stay organised, and remember: ~/src is home 🏑

β€” brought to you by the Debian crew, dated Jan 5, 2026, from the GIT-GRAB(1) manual page πŸŽ€βœ¨ see u in the group chat 🫢

πŸ“¦ where this page comes from