TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What is your shortcut for 'Git commit'?

1 pointsby gajusabout 2 years ago
Wondering if there are any clever programs that abstract git commit flow

7 comments

svennekabout 2 years ago
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 ..
brushfootabout 2 years ago
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`.)<p>Usage:<p>`gc &#x27;Change navbar size&#x27;`
评论 #35274819 未加载
gajusabout 2 years ago
For context, I am using `c() { git commit -m &#x27;$1&#x27; }`, which is helpful. But I wish there was something smarter.
gajusabout 2 years ago
just discovered lazygit which looks pretty neat<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=CPLdltN7wgE">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=CPLdltN7wgE</a>
shane178about 2 years ago
mine is &quot;gcm &lt;commit msg&gt;&quot;, just modify the oh-my-zsh git alias plugin. it&#x27;s fast and good to memorize.
lordkrandelabout 2 years ago
What is wrong with vanilla?
ivancheabout 2 years ago
alias gc=&#x27;git commit -v&#x27;<p>alias gc!=&#x27;git commit -v --amend&#x27;