https://github.com/aichbauer/node-git-commit-count
A tool to count the numbers of commits for a git repository
https://github.com/aichbauer/node-git-commit-count
commit count git is-git nodejs repo
Last synced: 4 months ago
JSON representation
A tool to count the numbers of commits for a git repository
- Host: GitHub
- URL: https://github.com/aichbauer/node-git-commit-count
- Owner: aichbauer
- License: mit
- Created: 2017-04-07T13:55:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-02T18:14:59.000Z (about 8 years ago)
- Last Synced: 2025-02-26T10:41:52.947Z (5 months ago)
- Topics: commit, count, git, is-git, nodejs, repo
- Language: JavaScript
- Size: 57.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-commit-count
[](https://travis-ci.org/aichbauer/node-git-commit-count)
[](https://ci.appveyor.com/project/rudolfsonjunior/node-git-commit-count-akb1b)
[](https://coveralls.io/github/aichbauer/node-git-commit-count?branch=master)Checks how many commits a git repository has
## Installation```sh
$ npm i git-commit-count --save
```
or
```sh
$ yarn add git-commit-count
```## Usage
Returns the number of the amount of git commits. Returns `-1` if it is not a git repository.
```js
const commitCount = require('git-commit-count');commitCount(); // number of process.cwd()
commitCount('any/git/repo'); // number
```## LICENSE
MIT © Lukas Aichbauer