Shows how many commits ahead and behind git remotes are.
How to run:
bash remote_status.sh [remote]
The remote defaults to origin
chmod +x remote_status.sh
echo "alias remote-status=$(pwd)/remote_status.sh" >> ~/.bash_profile
source ~/.bash_profile
You can now run remote-status
from anywhere to check on your git remote push/pull status.
$ remote-status
↑2↓3
That above means that you have 2 commits that haven't been pushed, and 3 commits that haven't been pulled.