Skip to content

Instantly share code, notes, and snippets.

@jona7o
Last active September 18, 2018 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jona7o/809da0113671e0f38c582c8a1caf47d2 to your computer and use it in GitHub Desktop.
Save jona7o/809da0113671e0f38c582c8a1caf47d2 to your computer and use it in GitHub Desktop.
~/.gitconfig go next/prev in git
[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