Reputation: 11513
I would like to put a placeholder into e.g. the footer.html and have it automatically replaced by the version tag set by git tag xy
right after a git pull
.
... something like a post pull procedure. Is there any quick way you can do this with git?
Upvotes: 3
Views: 648
Reputation: 8447
You can use git hooks to achieve this. There is no pull
hook, but pull
actually does fetch
and merge
, so you can set up a post-merge
hook to automatically generate your footer.html
file.
Read the relevant chapters on the Pro Git and Community books for more information.
Upvotes: 2