Created
December 8, 2011 12:51
-
-
Save nils-werner/1446914 to your computer and use it in GitHub Desktop.
Git Alias for displaying number of commits between two branches
This file contains hidden or 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
[alias] | |
between = !sh -c 'echo $1 $(git log --pretty=oneline ${2}..$1 | wc -l) ahead && echo ${2:-$(git name-rev --name-only HEAD)} $(git log --pretty=oneline $1..$2 | wc -l) ahead' - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works exactly as GitHubs "branches" feature. For example:
Compare
master
tointegration
Compare current branch to
integration