Forked in order to allow it to work on Windows if using git bash, cygwin or equivalent
Also added a column showing the remotes
If you ever experienced one of the following situations, git-summary is for you.
- I don't remember where some of my repositories are...
- Did I forgot to push that commit?
- Do I have a repo in my system that is outdated?
- Did someone pushed new commits to
origin/master
in one of my repos? - Did I commit that quick change I made before the pizza delivery guy rang my door?
git-summary is a bash script that will neatly list the current status of any git repos it founds within a directory or your entire system. See the example screenshot below:
sudo apt-get install gawk
brew install coreutils
Clone this repo and alias the script. To do so, add the following line to ~\.bashrc
:
alias git-summary='<PATH>/git-summary/git-summary'
<PATH>
is the path to the cloned repo. Don't worry, if you ever forget where you cloned this repo, you will be able to easily find it withgit-summary
😉
Copy git-summary
in /usr/local/bin
.
General usage:
git-summary [options] path
path
is optional and the current directory will be used if left blank.
- -h: Print help and exit.
- -l: Local summary 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.
Currently, git-summary
does not list multiple branches per repo. However, for single repos git-branch-status
does this beautifully.
A big thanks 🤘 to the amazing people that wrote the original versions of git-summary
:
- Forked from MirkoLedda
- In turn forked from lordadamson
- mzabriskie (Posted the original idea here)
- CycleMost
- lmj0011
- gimbo
- zartc