4 ms·
Ask HN: What is your shortcut for 'Git commit'?
Wondering if there are any clever programs that abstract git commit flow
- brushfoot 4y agoMy 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 4y agoI was considering updating my shortcut to add `git add --patch`, but I am not a huge fan of that interactive interface. Wish there was something smarter
- gajus 4y agoFor context, I am using `c() { git commit -m '$1' }`, which is helpful. But I wish there was something smarter.
- ivanche 4y agoalias gc='git commit -v' alias gc!='git commit -v --amend'
- gajus 4y agojust discovered lazygit which looks pretty neat https://www.youtube.com/watch?v=CPLdltN7wgE https://www.youtube.com/watch?v=CPLdltN7wgE
- svennek 4y agoMine 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 ..
- shane178 4y agomine is "gcm <commit msg>", just modify the oh-my-zsh git alias plugin. it's fast and good to memorize.
- lordkrandel 4y agoWhat is wrong with vanilla?