First, we’ll need to find the hash of the commit that we want to revert to. This can be done via
> git log -p filenameWhen we know the hash, we checkout the desired file to the desired hash:
git checkout [hash] -- path/to/fileFirst, we’ll need to find the hash of the commit that we want to revert to. This can be done via
> git log -p filenameWhen we know the hash, we checkout the desired file to the desired hash:
git checkout [hash] -- path/to/file