gitty
- Output some nice-to-have information about your local git repositories.
git clone https://github.com/mikejoh/gitty.git
cd gitty
make build
make install
(assumes thath~/.local/bin
is used)
- Download (using
v0.1.3
as an example):
curl -LO https://github.com/mikejoh/gitty/releases/download/0.1.3/gitty_0.1.3_linux_amd64.tar.gz
- Unpack:
tar xzvf gitty_0.1.3_linux_amd64.tar.gz
- Run:
./gitty -version
Usage of gitty:
-branches
Loop through all branches.
-path string
The path to scan for branches. (default ".")
-skip-dirs string
Comma separated list of directories to skip.
-truncate
Truncate branch names to 25 characters.
-version
Print the version number.
Local git repository:
gitty
┌────────┬───────────────────────────┬────────────┬──────────────────┬─────────┐
│ BRANCH │ LAST COMMIT │ AGE │ AUTHOR │ REMOTES │
├────────┼───────────────────────────┼────────────┼──────────────────┼─────────┤
│ main │ 2024-05-22T13:10:25+02:00 │ 21d 7h 35m │ Mikael Johansson │ origin │
└────────┴───────────────────────────┴────────────┴──────────────────┴─────────┘
Iterate through all branches in local repository:
gitty -branches
┌────────┬───────────────────────────┬────────────┬──────────────────┬─────────┐
│ BRANCH │ LAST COMMIT │ AGE │ AUTHOR │ REMOTES │
├────────┼───────────────────────────┼────────────┼──────────────────┼─────────┤
│ main │ 2024-05-22T13:10:25+02:00 │ 21d 7h 36m │ Mikael Johansson │ origin │
│ test │ 2024-05-22T13:10:25+02:00 │ 21d 7h 36m │ Mikael Johansson │ origin │
└────────┴───────────────────────────┴────────────┴──────────────────┴─────────┘