commit 109b43941ba57b8d1b478610a2cbe525291f747b
parent 486aadc9fa1af36888333eb07bde1c7ebf465ca9
Author: Mirko Ledda <mko.ledda@gmail.com>
Date: Sun, 7 Jan 2018 00:01:32 -0800
parent 486aadc9fa1af36888333eb07bde1c7ebf465ca9
Author: Mirko Ledda <mko.ledda@gmail.com>
Date: Sun, 7 Jan 2018 00:01:32 -0800
enhanced README + removed the .sh extension from the script
2 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md @@ -1,24 +1,38 @@ # git-summary -Summarizes multiple git repository status within a directory. +Did you ever forgot what is going on with your local git repos? Like, where they actually are located? If you made changes to repos that you did not commit or push? or if you are a few commits behind `origin/master`? -# Requirements +All Github users will experience that one way or another and `git-summary` is here at the rescue! This `bash` script will neatly list the status of all git repos found within a directory. -## Linux +## Requirements +### Linux * `sudo apt-get install gawk` -## MacOS +### MacOS * `brew install coreutils` -# Usage -Call `git-summary.sh [options]` from within a directory containing git repos to get their current status. +## Installation +### Via aliasing +A clean way to use `git-summary` is to clone this repo somewhere on your system and alias it so you can call the command `git-summary` from any directory. Add this line to `~\.bashrc` with `<PATH>` being the path to the cloned repo: -Options are listed below: +``` +alias git-summary='<PATH>/git-summary/git-summary' +``` + +> Don't worry, if you forget where you cloned this repo, you will be able to easily find it with `git-status` :wink: + +### Via binary lookup +If you don't like cloning directories, you can simply copy `git-summary` in `/usr/local/bin`. + +## Usage +Call `git-summary [options]` to get a summary of all git repo within the current folder. + +Available options are listed below: * **-h**: Print help and exit. * **-l**: Local status lookup. Checks only local changes which is faster as there is no need to fetch the remote. * **-d**: Deep lookup. Will look for any git repos within the entire current directory tree. Can be slowish for large trees. -# Credits -A big thanks to the amazing people that wrote the original versions of `git-summary`: +## Credits +A big thanks :metal: to the amazing people that wrote the original versions of `git-summary`: * **Forked from** [lordadamson](https://github.com/lordadamson/git-summary) * [mzabriskie](https://github.com/mzabriskie) (Posted the original idea posted [here](https://gist.github.com/mzabriskie/6631607))
: nply/git-summary