I have a few Rails applications and I use Git as the version control system. I use either GitHub or Beanstalk as the repository hosts.
What I am trying to is quite simple in theory. Somehow show the latest commit ID number (hash?) in the footer of the web application. So that when I am looking at the web application I can check that it's committed and deployed correctly.
I can imagine there are two methods to tackle this. The first would be a possible feature of Git that allows the output of the commit ID. The second would be a post-commit web hook (both Beanstalk and GitHub allow this).
Has anyone ever found a way to do this, or something similar?