How do I get the Git commit count?

To get a commit count for a revision (HEAD, master, a commit hash): git rev-list –count <revision> To get the commit count across all branches: git rev-list –all –count I recommend against using this for build identifier, but if you must, it’s probably best to use the count for the branch you’re building against. That … Read more

How to build jars from IntelliJ properly?

Here’s how to build a jar with IntelliJ 10 http://blogs.jetbrains.com/idea/2010/08/quickly-create-jar-artifact/ File -> Project Structure -> Project Settings -> Artifacts -> Click green plus sign -> Jar -> From modules with dependencies… The above sets the “skeleton” to where the jar will be saved to. To actually build and save it do the following: Extract to … Read more