git pull code from specific commit code example
Example 1: git pull from previous commit
# This will detach your HEAD, that is, leave you with no branch checked out:
git checkout 0d1d7fc32
Example 2: pull file from specific commit git
git checkout <COMMIT_HASH> <path/to/the/messed/up/file>
Example:
git checkout f08a63ff4fa7b8479f8c698e5998ee1afcac3a4e GoodFile