Created
August 23, 2019 15:39
-
-
Save ancho85/99daab0e8a5fb5d0663f403eebfda997 to your computer and use it in GitHub Desktop.
simple ahead behind git script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ahead=$(git rev-list --count master..$1) | |
behind=$(git rev-list --count $1..master) | |
echo "Ahead $ahead, behind $behind" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment