Skip to content

Instantly share code, notes, and snippets.

@jschomay
Created December 3, 2014 07:14
Show Gist options
  • Save jschomay/0083568769fad9489300 to your computer and use it in GitHub Desktop.
Save jschomay/0083568769fad9489300 to your computer and use it in GitHub Desktop.
Walk forward in git history for live coding presentations (displays diff and copies file to clipboard to paste into jsbin for example)
#!/bin/sh
clear
git checkout $(git rev-list HEAD..master | tail -n 1)
pbcopy < game.js
git show --format="%C(yellow)%s%Creset%n%n%b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment