I've seen many answers here for restoring a single file, however I'm in a situation where a co-worker managed to blow away all the changes related to a specific commit.
Is there a way to checkout all the files that had changed in a specific commit, and push them forward to current master?
I've tried:
git checkout 3ed2aa8 //go to the commit with the change
git checkout -b getOldFiles //make it a legit branch
git rebase master //get branch up to date
git checkout master //go to local master
git merge getOldFiles //in theory, get the changed files back
I'm not 100% sure, but I think it didn't achieve anything.