包详细信息

git-commit-count

aichbauer4.5kMIT1.1.3

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

git, commit, commits, count

自述文件

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