peap / git-global

Keep track of all your git repositories.
https://crates.io/crates/git-global
MIT License
25 stars 5 forks source link
crate developer-tools git git-addons rust subcommands

git-global

Crates.io Crates.io Build

Use git-global to keep track of all the git repositories on your machine.

This is a Rust program that you can install with cargo install git-global. (To obtain cargo and Rust, see https://rustup.rs.) Once installed, you can optionally install the manpage with git global install-manpage

Once installed, you gain an extra git subcommand that you can run from anywhere to check up on all your git repos: git global. Use git global <subcommand> to:

Command-line flags

In addition to config-file-based options, there are a set of global command-line flags that take precedence:

Configuration

To change the default behavior of git-global, you can do so with --- wait for it --- git's global configuration!

To set the root directory for repo discovery to something other than your home directory:

git config --global global.basedir /some/path

To add patterns to exclude while walking directories:

git config --global global.ignore .cargo,.vim,Library

The full list of configuration options supported in the global section of .gitconfig is:

Manpage generation

An up-to-date copy of the manpage lives in the repository at doc/git-global.1. To generate it from a local clone of the repo, run:

cargo run --bin generate-manpage --features=manpage > doc/git-global.1

Ideas

The following are some ideas about future subcommands and features:

Release Notes