Possible Duplicate:
In Git, how can I write the current commit hash to a file in the same commit
We are stuck with the highly unfortunate but unavoidable problem of periodically having to deploy development builds of our code right out of the oven. After a while, we lose track of whose install is based on which "intermediate" untagged version of the codebase.
Does git offer some automatic macro or token embeddable in tracked files that would automatically be substituted with the latest commit hash ID from HEAD upon a 'git clone' or whatnot?
Surely there must be a way to do this; even RCS, a downright Jurassic system by the standards of today's cool kids, had a built-in version variable it could replace.