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

By Chin

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 objects 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. How can I find out the git object id of that specific object so that I can delete it with bfg?

Source: Stack Overflow


Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273