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.

Have Gemini stage and write commit messages for you

31 pointsby hadat3 months ago

13 comments

progbits3 months ago
Ah this again?<p>Commit message is not just a quick summary of what, it&#x27;s also a historical record of why. Can&#x27;t generate the latter from the diff.
评论 #42903929 未加载
评论 #42906415 未加载
评论 #42903851 未加载
评论 #42907871 未加载
评论 #42902174 未加载
评论 #42902105 未加载
评论 #42902950 未加载
traveler13 months ago
This sort of thing probably doesn&#x27;t work particularly well with file auto-saving, which is almost necessary for some language servers to reprocess files to reflect &quot;real-time&quot; in VSCode. Aren&#x27;t you also just committing half-baked work and totally menial changes?
masto3 months ago
I tried this with a random commit from one of my projects: <a href="https:&#x2F;&#x2F;github.com&#x2F;masto&#x2F;LED-Marquee&#x2F;commit&#x2F;775d48fc0dd969de2dfb3c7212b6c900d83cdd2d">https:&#x2F;&#x2F;github.com&#x2F;masto&#x2F;LED-Marquee&#x2F;commit&#x2F;775d48fc0dd969de...</a>. You can read my human-crafted message there. By comparison, what follows is the one that Gemini came up with which is A: useless, and B: wrong. I don&#x27;t want to be mean, but I would put this up there as almost the perfect example of what generative AI should never be used for. It cannot read your mind, and the commit description is where you say what the intention of the change is, not summarize what it contains.<p><pre><code> Fix: Remove platformio.ini from .gitignore and rename platformio.ini.dist This commit removes platformio.ini from the .gitignore file and renames platformio.ini.dist to platformio.ini. This allows the project&#x27;s PlatformIO configuration to be tracked by Git and ensures consistent build settings across development environments. It also adds comments explaining how to configure OTA updates and override settings with a separate marquee.ini file.</code></pre>
bravura3 months ago
Please don&#x27;t jump on me:<p>Am I the only person in this world who is an accomplished engineer and thinks commit messages are worthless? That if I want to roll back or dissect, I do it at the PR and not individual commit level?<p>The need for very accurate comment messages occurs so rarely in my workflow that the value of crafting them correctly is not there.<p>I ask honestly: Am I missing something here? Why? Is it something peculiar to my workflow I&#x27;m missing?
评论 #42904554 未加载
评论 #42906106 未加载
评论 #42904551 未加载
评论 #42904566 未加载
tommiegannert3 months ago
For commit messages, the world seems full of bad commit messages, and commit hygiene. Does this do anything to help improve that? What I really want is a bot that groups my changes into logical commits. I.e. I tell what kind of change I want committed, and it stages only those patches.<p>I noticed today that one of the big hardware stores in Switzerland has started using LLMs to generate descriptions. As expected, it&#x27;s just drivel:<p>&gt; Do you need a new sealing ring for your washbasin siphon? No problem. The Geberit plug-in seal is exactly what you need. With a diameter of 32&#x2F;46 mm, it fits perfectly and ensures that everything is tight. It has a height of 5.5 cm and a length of 2.3 cm, making it easy to handle and quick to install. It&#x27;s simply worth its weight in gold when everything fits at the first attempt and you don&#x27;t have to worry about whether the quality is right. So, whenever your washbasin siphon needs a refresh, the Geberit plug-in seal with its 3.2 cm is your first choice. Simply insert and you&#x27;re done.<p><a href="https:&#x2F;&#x2F;www.jumbo.ch&#x2F;de&#x2F;bad-sanitaer&#x2F;installationsmaterial&#x2F;dichtungen-dichtmittel&#x2F;geberit-steckdichtung---32--46-mm&#x2F;p&#x2F;4437440" rel="nofollow">https:&#x2F;&#x2F;www.jumbo.ch&#x2F;de&#x2F;bad-sanitaer&#x2F;installationsmaterial&#x2F;d...</a>
评论 #42902871 未加载
评论 #42905232 未加载
toasteros3 months ago
No actually just write your own commit messages. Generally speaking, just write your own stuff.
skywhopper3 months ago
This is a terrible idea. Do not do this.
hadat3 months ago
The Auto-Commit Bot is a Python-based tool that automatically monitors a directory for changes, generates meaningful commit messages using the Google Gemini API, and commits the changes to a Git repository. It’s perfect for automating repetitive Git tasks and ensuring consistent commit messages.
评论 #42904386 未加载
评论 #42906188 未加载
deivid3 months ago
&quot;feat: Enhance Auto-Commit Bot with new features and improvements&quot;<p>It&#x27;s definitely _a_ commit message. Not sure it beats &quot;asdasd&quot; or &quot;do stuff&quot; though.
评论 #42905594 未加载
talles3 months ago
We are automating commit messages now? Is it really that much of an effort to simply phrase what you just developed and type it out?
guitheengineer3 months ago
Cursor has this conveniently built in. I find it pretty handy, specially for wip commits<p>It doesn’t know the intent of the commit though, so if you change X because of Y, it will just tell that X changed, without explaining why.<p>Adding more context about what the ticket is about can probably solve that
评论 #42903470 未加载
stevage3 months ago
Copilot already proposes commit messages for you, right?
ahoka3 months ago
Example from the readme:<p>‘Updated file1.txt with new content.’<p>Huh?
评论 #42906570 未加载