I would like to push a version string to a file within the Git repo, like a
version number, but not with an incremented value.
I would like to put into the file the branch / tag name and the date of the
On the master branch within the file should be written: master 2012-10-27
The value on the master should be changed on each commit
If a new branch is created the value should be: branchname <date of the
On a tag creation the tag name and date should be added on which the tag is
I don't know how to do this, because I have found in the documentation that
clients and server hook (I'm comming from SVN), so I don't know which type
of hook is the
best choice. IMHO it should be a server-side hook.
The next question is, that I need a change on a checked in file, so the
commit hash is changed,
can I do something like this, because the content of the commit is changed?
IMHO the version
string can be added also on a check-out, I think this is the best solution.
Can anybody help me to solve this problem?
Thanks a lot
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To view this discussion on the web visit
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at