Skip to content

Instantly share code, notes, and snippets.

@danii1
Created November 19, 2015 21:17
Show Gist options
  • Save danii1/ca07a9c42848e1df58a3 to your computer and use it in GitHub Desktop.
Save danii1/ca07a9c42848e1df58a3 to your computer and use it in GitHub Desktop.
Git as a presentation tool
# tag target commits as demo-start, demo-end
# move to the start of your presentration with `git checkout demo-start`
# use to `git next`, `git prev` to jump between "slides"
git config --global alias.next '!git checkout `git rev-list HEAD..demo-end | tail -1`'
git config --global alias.prev 'checkout HEAD^'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment