gitty

module
v0.1.1-0...-48ec028 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2024 License: Apache-2.0

README

gitty

gitty

gitty - Output some nice-to-have information about your local git repositories.

Install

From source
  1. git clone https://github.com/mikejoh/gitty.git
  2. cd gitty
  3. make build
  4. make install (assumes thath ~/.local/bin is used)
Download and run
  1. 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
  1. Unpack:
tar xzvf gitty_0.1.3_linux_amd64.tar.gz
  1. Run:
./gitty -version

Usage

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.
Examples

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  │
└────────┴───────────────────────────┴────────────┴──────────────────┴─────────┘

Directories

Path Synopsis
cmd
gitty command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL