@@ -44,6 +44,79 @@ git() {
4444
4545## Usage
4646
47+ ``` sh
48+ $ git-stats --help
49+ git-stats --help
50+ A GitHub-like contributions calendar, but locally, with all your git commits.
51+
52+ usage: git-stats [start] [end] [options] [data]
53+
54+ start: Optional start date
55+ end: Optional end date
56+
57+ options:
58+ -v Displays version information.
59+ -h --help Displays this help.
60+ --no-ansi Doesn' t use ANSI colors in the squares.
61+ --record <data> Records a new commit. Don' t use this unless you are
62+ a mad scientist. If you are a developer, just use this
63+ option as part of the module.
64+ --light Enable the light theme.
65+
66+ examples:
67+ git-stats # Displays your commit calendar
68+ git-stats -v
69+ git-stats -h
70+ git-stats --light # Light mode
71+ git-stats ' 1 January 2012' # All the commits from 1 January 2012, to now
72+ git-stats ' 1 January 2012' ' 31 December 2012' # All the commits from 2012
73+
74+ Your commit history is keept in the .git-stats, in your $HOME directory (~/)
75+
76+ Documentation can be found at https://github.com/IonicaBizau/git-stats
77+ ```
78+
79+ If you overriden the ` git ` command with a function, then your commits will be automatically recorded.
80+
81+ ### Importing and deleting commits
82+ I know it's not nice to start from scratch your git commit calendar. That's why I
83+ created a ` git-stats ` importer, that imports or deletes the commits from a repository.
84+
85+ Check it out here: https://github.com/IonicaBizau/git-stats-importer
86+
87+ The usage is simple:
88+
89+ ``` sh
90+ # Install the importer tool
91+ $ npm install -g git-stats-importer
92+
93+ # Go to the repository you want to import
94+ $ cd path/to/my-repository
95+
96+ # Import the commits
97+ $ git-stats-importer
98+
99+ # ...or delete them if that's a dummy repository
100+ $ git-stats-importer --delete
101+ ```
102+
103+ ### Importing all the commits from GitHub and BitBucket
104+ Yes, you read correctly! That's also possible.
105+
106+ ``` sh
107+ # Download the repository downloader
108+ $ git clone
[email protected] :IonicaBizau/repository-downloader.git
109+
110+ # Go to repository downloader
111+ $ cd repository-downloader
112+
113+ # Install the dependencies
114+ $ npm install
115+
116+ # Start downloading and importing
117+ $ ./start
118+ ```
119+
47120## Documentation
48121If you want to use this as module, this is possible. See the content below.
49122
0 commit comments