gci = git commit with diff
How to work
gci will get the diff of the changes has been staged in your repository,
and save in a temporay file. Then
gci try to open the temporay file
with your editor. After you save the file again,
git commit, and use the first line of the file as your commit message.
Please note that, you can change editor by environment variable
$ export EDITOR=vim
Install with git
$ git clone https://github.com/shonenada/gci.sh /path/to/gci.sh $ cd /path/to/gci.sh && make install
Install with curl
$ curl https://raw.githubusercontent.com/shonenada/gci.sh/master/gci.sh > /usr/local/bin/gci $ chmod +x /usr/local/bin/gci
Make commit with gci
1. make changes in your repo
$ echo "Hello gci" >> README.md
$ git add README.md
3. it's time to gci
4. enter your commit message
Enter commit message according to the diff show below and then save and quit.
If you need to make more changes and don't want to commit,
just keep the first line blank.
gci will know you.