mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2025-01-03 10:22:11 +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
|
$ 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
|
```sh
|
||||||
|
# Override the Git command
|
||||||
git() {
|
git() {
|
||||||
cmd=$1
|
cmd=$1
|
||||||
shift
|
shift
|
||||||
|
@ -38,7 +42,6 @@ git() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
### `record(data, callback)`
|
### `record(data, callback)`
|
||||||
Records a new commit.
|
Records a new commit.
|
||||||
|
|
Loading…
Reference in a new issue