Skip to content

Instantly share code, notes, and snippets.

@rlb3
Created February 25, 2013 15:02
Show Gist options
  • Select an option

  • Save rlb3/5030381 to your computer and use it in GitHub Desktop.

Select an option

Save rlb3/5030381 to your computer and use it in GitHub Desktop.
git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment