Last Updated: February 25, 2016
·
974
· supermarin

Ultra fast git commit

There are lots of aliases like

$ git ci -m "my awesome commit" ,
$ git cm "a commit message" ,...

If you commit many times and often as I do, there are a few minuses:
- repetitive commands
- quotes
- escaping quotes

Wouldn't it be nice if you can just do:

$ gc this is my commit. I don't even have to add quotes

Well, you actually can. Paste this to your aliases, or .rc file:

gc() {
  git add .
  git commit -am "$*"
}