Skip to content

Instantly share code, notes, and snippets.

@lirenlin
Last active December 15, 2015 06:59
Show Gist options
  • Save lirenlin/5220400 to your computer and use it in GitHub Desktop.
Save lirenlin/5220400 to your computer and use it in GitHub Desktop.
git checkout the file from last commit into new file
git show branch:path_to_file > newFile
git show HEAD:path_to_file > newFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment