git-report
git-report copied to clipboard
Simple tools to generate daily report from multiple commits and repositories
Git report (greport)
Simple tools to generate daily report from multiple commits and repositories
Installation
Prerequisite
- Git installed
-
greport
have only been tested on MacOS
Run the following script in your terminal
curl -fsSL https://raw.githubusercontent.com/vanhtuan0409/git-report/master/install | sh
Or manually download binary file and place it into your path
Basic usage
# create default config
greport init
# generate report for last 7 days of current directory
greport generate
# generate report from a specific date
greport generate -f 2018-08-01
# generate report from a specific date to a specific date
greport generate -f 2018-08-01 -t 2018-08-10
# view current config
greport config
# view manual
greport help
greport help generate
Config
By default greport
will generate report within 7 days for all member in current directory. This behaviour can be changed by edit config file ~/.greport/config.yml
Config variable:
- emails (list): list of emails. When specified
greport
will only collect commits from author with these email. - repositories (list): list of repository paths on your machine.
- default_time_range (number of days): when there is no
from
option specified,greport
will collect all commits within default_time_range to now
Example config:
emails:
- [email protected]
- [email protected]
repositories:
- path_to_repo_1
- path_to_repo_2
default_time_range: 7
Manual
NAME:
Git Report - Collect git commit messages and organize by days to create a daily report
USAGE:
greport [global options] command [command options] [arguments...]
VERSION:
v0.1.0
COMMANDS:
generate Generate daily report from commit messages
init Initialize config file
config Show config file
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version