Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddiemoya/9751187 to your computer and use it in GitHub Desktop.
Save eddiemoya/9751187 to your computer and use it in GitHub Desktop.
Example of using "git checkout" with path. For oembed use on http://eddiemoya.com
# Recreate the file at path/to/file in the state in the state it was at
# just prior to having been deleted (made up commit hash for example)
git checkout 4efa6b0^ -- path/to/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment