When using git, you can grab your current build number (number of commits) by using the command: git rev-list HEAD --count. If you need to incorporate that build number into your project you can use a hook to add the build number to one or more of your project’s files. A git hook is just a shell script… Full Article »