From 3b576bdc594e90443da8d7f1703c9dac46b10b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Mon, 9 Feb 2015 14:28:51 +0200 Subject: [PATCH] Docs --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0f5959c..df30c0f 100644 --- a/README.md +++ b/README.md @@ -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.