Bashgit rev-list --count HEAD
# retrieve latest git revision and revision numberinclude(GetGitRevisionDescription)git_revision(GIT_REVISION GIT_REVISION_NUMBER)message(STATUS "Git revision is: ${GIT_REVISION} (${GIT_REVISION_NUMBER})")