deoren / notes

Various notes for topics I'm learning
2 stars 0 forks source link

Git | checkout a single file from a specific commit #97

Open deoren opened 4 years ago

deoren commented 4 years ago

https://coderwall.com/p/pgqlkq/git-checkout-a-single-file-from-a-specific-commit

git checkout <COMMIT#> <path/to/the/messed/up/file>

Example:

git checkout f08a63ff4fa7b8479f8c698e5998ee1afcac3a4e Gemfile