Skip to content

Instantly share code, notes, and snippets.

@diazdc
Created February 20, 2020 23:13
Show Gist options
  • Save diazdc/9ff32c682ce2fd61b851ed350f032095 to your computer and use it in GitHub Desktop.
Save diazdc/9ff32c682ce2fd61b851ed350f032095 to your computer and use it in GitHub Desktop.
Generate file from old git commit or branch
# HEAD~1 is a single commit back, HEAD~2 is two..
# Don't forget to write the full path
git show HEAD:all_regeneration_datasets_Sungmin/app.R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment