title: Show the latest commit value within a web application?
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>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).</p>
  
  <p>Has anyone ever found a way to do this, or something similar?</p>
  
  <p>Thanks,</p>
  
  <p>Danny</p>