Show the latest commit value within a web application?
问题 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