Created
October 20, 2017 19:56
-
-
Save jglick/66974651f7c0c3ffed5945b3f2d2ebd4 to your computer and use it in GitHub Desktop.
git first-child
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] | |
# http://stackoverflow.com/a/30010601/12916 | |
first-child = "!f() { git log --reverse --ancestry-path --pretty=%H $1..${2:-HEAD} | head -1; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taken from this tip.
Useful as a branch point for Maven projects; e.g.,
retains
and anything else besides
<version>
s that might have changed in the[maven-release-plugin] prepare for next development iteration
commit.