Skip to content
/ gitty Public

Output some nice-to-have information about your local git repositories! 🐱

License

Notifications You must be signed in to change notification settings

mikejoh/gitty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Output some nice-to-have information about your local git repositories! 🐱

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published