We currently store our version number in a file in git. Due to our crazy process, when in stabilisation phase - i.e. code freeze - every commit to the remote repository needs to update the version number in the file.
Our remote repository is hosted on Stash.
How can we enforce that every commit has modified this file as part of the commit, and ensure that no one accidentally forgets to update the file? If we have a pre-commit hook, then it requires every developer to be running the same environment (windows/linux) and it requires every developer to manually install the pre-commit hook (I think). Should it be enforced as a pre-push hook in git? What's the best way?