Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chapmanjacobd/df9b07c9966e2209e29972e74f3e55b4 to your computer and use it in GitHub Desktop.
Save chapmanjacobd/df9b07c9966e2209e29972e74f3e55b4 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