This commit is contained in:
Ionică Bizău 2015-02-09 14:28:51 +02:00
parent 91a14b172c
commit 3b576bdc59

View file

@ -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.