Skip to content

polcats/node-git-commit-count

 
 

Repository files navigation

git-commit-count

Build Status Build status Coverage Status

Checks how many commits a git repository has

Installation

$ npm i git-commit-count --save

or

$ yarn add git-commit-count

Usage

Returns the number of the amount of git commits. Returns -1 if it is not a git repository.

const commitCount = require('git-commit-count');

commitCount(); // number of process.cwd()
commitCount('any/git/repo'); // number

LICENSE

MIT © Lukas Aichbauer

About

A tool to count the numbers of commits for a git repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%