As you can read the answers to the Ben James question posted in commnets, people are having trouble placing commit hash values in files using git.
Is it possible to use a scripted solution outside of git? When you need to deploy a new assembly from git, you can create a tag, check it before you build your tar.gz release, or whatever you add the tag name to each source file. Guess that you can automate this, perhaps with git-archive or something else.
, , - , , , git - SHA1. , , SHA1. cat-file