https://github.com/tableflip/git-days
:chart_with_upwards_trend: How many days did you work on that project?
https://github.com/tableflip/git-days
Last synced: 10 months ago
JSON representation
:chart_with_upwards_trend: How many days did you work on that project?
- Host: GitHub
- URL: https://github.com/tableflip/git-days
- Owner: tableflip
- License: isc
- Created: 2015-07-10T09:02:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-31T09:21:06.000Z (about 9 years ago)
- Last Synced: 2025-03-21T18:01:42.877Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/git-days
- Size: 6.84 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-days [](https://travis-ci.org/tableflip/git-days) [](https://david-dm.org/tableflip/git-days)
How many days did you work on that project?
CLI tool to get a print out of how many days each committer committed to a project and how many total commits they've made.
## Getting started
```sh
npm install -g git-days
cd /path/to/project
git-days
```
Output:
```sh
┌──────────────────────┬──────┬─────────┐
│ Author │ Days │ Commits │
├──────────────────────┼──────┼─────────┤
│ Jane │ 46 │ 443 │
├──────────────────────┼──────┼─────────┤
│ Bob │ 16 │ 96 │
├──────────────────────┼──────┼─────────┤
│ Dave │ 70 │ 454 │
├──────────────────────┼──────┼─────────┤
│ Joe │ 1 │ 1 │
├──────────────────────┼──────┼─────────┤
│ Laura │ 6 │ 12 │
├──────────────────────┼──────┼─────────┤
│ Sue │ 13 │ 50 │
├──────────────────────┼──────┼─────────┤
│ Richard │ 4 │ 23 │
├──────────────────────┼──────┼─────────┤
│ Christopher │ 1 │ 1 │
└──────────────────────┴──────┴─────────┘
Total: 157 days (1080 commits)
```
## Options
### `from`
Only consider commits after this date. An ISO formatted date passed to moment.
e.g.
```sh
git-days --from 2015-07-10
```
### `to`
Only consider commits before this date. An ISO formatted date passed to moment.
e.g.
```sh
git-days --to 2015-01-01
```
### `sort`
Sort the table by the specified column. Prefix with "-" to change sort direction to descending. Default is sort by author name, ascending.
e.g.
```sh
# Sort by commits ascending
git-days --sort commits
# Sort by days descending
git-days --sort=-days
```
## Specify project path(s)
Perhaps your project is split over multiple repos. No problem!
```sh
git-days /path/to/project /path/to/related/project/repo
```
---
A [(╯°□°)╯︵TABLEFLIP](https://tableflip.io) side project.
[](https://github.com/feross/standard)