Code Monkey home page Code Monkey logo

gci.sh's Introduction

gci.sh

gci = git commit with diff

asciicast

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, gci run git commit, and use the first line of the file as your commit message.

Please note that, you can change editor by environment variable EDITOR: $ export EDITOR=vim

Quick Start

Installation

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
2. add them
$ git add README.md
3. it's time to gci
$ 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.

gci.sh's People

Contributors

shonenada avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gci.sh's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.