mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 21:32:10 +01:00
Docs
This commit is contained in:
parent
91a14b172c
commit
3b576bdc59
1 changed files with 5 additions and 2 deletions
|
@ -7,9 +7,13 @@ A GitHub-like contributions calendar, but locally, with all your git commits.
|
|||
$ npm install -g git-stats
|
||||
```
|
||||
|
||||
Then put the following lines in your `~/.bashrc` file:
|
||||
### Catching the `git commit` command
|
||||
Would you like to catch store automatically the commits when you do `git commit`?
|
||||
|
||||
If so, put the following lines in your `~/.bashrc` (or `~/.bash_profile` on OS X) file:
|
||||
|
||||
```sh
|
||||
# Override the Git command
|
||||
git() {
|
||||
cmd=$1
|
||||
shift
|
||||
|
@ -38,7 +42,6 @@ git() {
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
## Documentation
|
||||
### `record(data, callback)`
|
||||
Records a new commit.
|
||||
|
|
Loading…
Reference in a new issue