HACKER Q&A
📣 gajus

What is your shortcut for 'Git commit'?


Wondering if there are any clever programs that abstract git commit flow


  👤 svennek Accepted Answer ✓
Mine is "git commit", as I don't like to customize the hell out of my multiple and often changing work computers, for a touch typist the extra letters are maybe a single second of typing ..

👤 brushfoot
My PowerShell profile has a function, `gc`, that stages, commits, and pushes all changes. (It runs `git add -A`, `git commit -m` with the specified message, and then `git push`.)

Usage:

`gc 'Change navbar size'`


👤 gajus
For context, I am using `c() { git commit -m '$1' }`, which is helpful. But I wish there was something smarter.

👤 gajus
just discovered lazygit which looks pretty neat

https://www.youtube.com/watch?v=CPLdltN7wgE


👤 shane178
mine is "gcm ", just modify the oh-my-zsh git alias plugin. it's fast and good to memorize.

👤 lordkrandel
What is wrong with vanilla?

👤 ivanche
alias gc='git commit -v'

alias gc!='git commit -v --amend'