Can I go? CLI app for checking the state of your git repositories.
To install cig, follow the instructions for your OS below:
If you have go installed and the bin folder added to your path, just run:
$: go get github.com/stevenjack/cigMake sure you have homebrew installed, then run the following:
$: brew install cig
Alternatively you can follow the install instructions for
Linuxbelow if you don't have or want to install homebrew.
curl -L https://bit.ly/cig-install | sudo bashNote: this command downloads the binary and changes the execute permission on it
curl -L https://github.com/stevenjack/cig/releases/download/v0.1.5/cig_`uname -s`_x86_64 > /usr/local/bin/cig
chmod +x /usr/local/bin/cigDownload the following binary:
Once you have the binary, run it via your cmd prompt:
C: cig_windows_amd64.exe
Create a .cig.yaml configuration file within your home directory:
~/.cig.yaml
work: /path/to/work/repos
personal: /path/to/personal/repos~/Users/Steven Jack/.cig.yaml
work: C:\path\to\work\repos
personal: C:\path\to\personal\reposThe configuration file defines the different folder locations that contain the .git repos you want cig to check for you.
Simply run:
$: cig
Once executed, cig will check all your repos and the following information will be displayed:
- Repos that need pushing up to the origin:
P - Repos that have new, unstaged and staged changes:
M(10)
Note: the values will soon be replaced with something similar to:
(S)taged, (M)odified, (N)ew
Please see the issues page for full details
If you just want to check your 'work' repos for changes:
$: cig -t work
To filter them based on a certain string such as 'steve':
$: cig -f steve
You can also combine them, so to only show 'work' repos with 'steve' in the path:
$: cig -t work -f steve
Please see issues
- Fork it ( http://github.com/stevenjack/cig/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request