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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use git hooks to achieve this. There is no
pullhook, butpullactually doesfetchandmerge, so you can set up apost-mergehook to automatically generate yourfooter.htmlfile.Read the relevant chapters on the Pro Git and Community books for more information.