Skip to content

Instantly share code, notes, and snippets.

@mpaskalev
Last active August 29, 2015 14:11
Show Gist options
  • Save mpaskalev/750a7c6b4a39046f2ea1 to your computer and use it in GitHub Desktop.
Save mpaskalev/750a7c6b4a39046f2ea1 to your computer and use it in GitHub Desktop.
Get number of all real commits from git repository
// without merge
git log --pretty=oneline | grep -vi "merge" | wc -l
// with merge
git rev-list HEAD --count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment