When deploying apps is helpful to know exactly what version your looking at. Where it might be the one on your server that you deployed months ago or the version you have checked out on your development machine.

With java / maven applications you can configure the maven jar plugin to append this information to the  jar META-INF.
I havent found anything like this yet for javascript / angular.js but its easy to craft a script to append it like this.


SHA=`git rev-parse HEAD`
echo $VERSION_INFO >> app/scripts/analyse.js

Now its easy to check what the version is just look in the js file. This can even be accessed programatically from the application.