How to find the git object id of an object with a known hash

Viewed 5760

I am using bfg to clean my git repo. To get the list of big files to delete, I use this script. However for some files I only want to delete specific versions of them from the repo.

bfg has the option to "strip blobs with the specified Git object ids". When I run the above script, I am given a hash for each object in the list. Given that hash, how can I find out the git object id of that specific object so that I can delete it with bfg?

1 Answers
Related