Created
February 9, 2019 12:02
-
-
Save nyctef/a5b80daf7e5497e7418289c0c2f89378 to your computer and use it in GitHub Desktop.
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
function nextcommit($targetBranch) { | |
$nextHash = git rev-list --topo-order HEAD..$targetBranch | select -last 1 | |
git checkout $nextHash | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment