Clone or jump to checkouts of Git repos
Find a file
2025-08-24 15:01:46 +02:00
src feat: replace pushd with cd in shell function 2025-08-24 15:01:46 +02:00
.envrc feat: add flake 2025-08-09 21:42:01 +02:00
.gitignore feat: add flake 2025-08-09 21:42:01 +02:00
Cargo.lock feat: use clap and add setup command 2025-08-09 21:27:42 +02:00
Cargo.toml docs: add LICENSE 2025-08-10 21:29:18 +02:00
default.nix feat: add flake 2025-08-09 21:42:01 +02:00
flake.lock fix: make flake work for aarch64 and darwin 2025-08-10 21:40:18 +02:00
flake.nix fix: make flake work for aarch64 and darwin 2025-08-10 21:40:18 +02:00
LICENSE-APACHE docs: add LICENSE 2025-08-10 21:29:18 +02:00
LICENSE-MIT docs: add LICENSE 2025-08-10 21:29:18 +02:00
README.md feat: replace pushd with cd in shell function 2025-08-24 15:01:46 +02:00
shell.nix feat: add repo tool 2025-08-09 19:57:05 +02:00

repo-rs

Usage

h repo-name resolves the path to repo-name and changes the current working directory to it. h https://git.example.com/dadada/example.git clones the repo example into ~/code/git.example.com/dadada/example and changes the current working directory to it. In this example ~/code is the path in which repos should be stored; it can be specified using export REPO_CODE_ROOT=$HOME/code.

Installation

Install the repo tool and install the shell function. The function changes your current working directory to the resolved directory.

cargo install
eval "$(repo setup --root ~/git)"