Skip to content

Instantly share code, notes, and snippets.

@jona7o
Last active September 18, 2018 18:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
~/.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