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.

Show HN: Git command for creating snapshot commits on a not checked-out branch

2 pointsby meriboldalmost 3 years ago

2 comments

theamkalmost 3 years ago
I recommend &quot;commit early, commit often&quot; approach instead -- and rebase&#x2F;squash before making a PR.<p>For those temp commits, I found out that even bad commit messages which would not be acceptable in any serious codebase (&quot;reafctored foowidegt&quot;, &quot;starts up but crashes in 3 sec&quot;, &quot;cannot find unistd.h&quot;) are still very useful. And of course those commit messages are great placeholders for random notes (&quot;TODO need to add unit test for zero input&quot;, &quot;still need to hook up to main class&quot;)
评论 #31819693 未加载
meriboldalmost 3 years ago
This is basically a poor man&#x27;s Dura (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29784238" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29784238</a>) in 20 lines of Bash that is run manually instead of using a background process and a timer.