How can we increment a version file whenever developers change certain files?
We are trying to implement a solution that automatically increments a version file when developers update certain files:
- We see that there are options to use remote git hooks and other git hooks. We need guidance.*
- We want to be able to check in a script that does the replacement and have it execute under the specified condition.*
- We want to reduce/eliminate manual steps needed to set this up and hope it can just be checked in.*
- We have tried making a remote
updatehook. We are stuck adding the changed file in the bare git repo and re-pushing it. Is there a better way to do this?*