If you reference this git-cache-meta implementation, then all you have to do is make sure the script is in your $ PATH (put it in /usr/local/bin/ or similar) and navigate to the desired repo, and then run:
$ git-cache-meta
This will save the metadata in a file named .git_cache_meta in rep. Then in another repo instance do:
$ git-cache-meta
matpie
source share