A bash script that displays information about the current git location. In particular the branch name, difference with remote branch, number of files staged, changed, etc.
This script is based on the original work of magicmonty (https://github.com/magicmonty/bash-git-prompt). In this fork I dropped a lot of stuff I didn't actually need, and modified the main behaviour: instead of setting your prompt, it outputs a colored string that you can include wherever you need.
The output of the script (included in a prompt) looks like the following:
The symbols are as follows:
↑n: ahead of remote byncommits↓n: behind remote byncommits↓m↑n: branches diverged, remote bymcommits, yours byncommits✚n: there arenstaged files●n: there arenunstaged files…n: there arenuntracked files✖n: there arenunmerged files⚑n: there arenstash entries
