For troubleshooting it can be helpful to verify the version of code committed to a system. Once we know the version of code we can check for any bug fixes in newer versions - or determine if this is new exciting bug that needs to be fixed.
In a previous life (Visual SourceSafe) there were Keyword Expansions that could be put in a comment and text would be substituted when it was checked in. I wanted this same functionality in my Git checkins. I didn't find something easy for this... but in true Git style you can get there from here.