Last active
September 18, 2018 18:20
-
-
Save jona7o/809da0113671e0f38c582c8a1caf47d2 to your computer and use it in GitHub Desktop.
~/.gitconfig go next/prev in git
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
[alias] | |
prev = checkout HEAD^1 --force | |
next = "!sh -c 'git log --reverse --pretty=%H master | awk \"/$(git rev-parse HEAD)/{getline;print}\" | xargs git checkout --force'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment