Hacker News Re-Imagined

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

  • 2 points
  • 15 days ago

  • @meribold
  • Created a post

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


@theamk 15 days

Replying to @meribold 🎙

I recommend "commit early, commit often" approach instead -- and rebase/squash before making a PR.

For those temp commits, I found out that even bad commit messages which would not be acceptable in any serious codebase ("reafctored foowidegt", "starts up but crashes in 3 sec", "cannot find unistd.h") are still very useful. And of course those commit messages are great placeholders for random notes ("TODO need to add unit test for zero input", "still need to hook up to main class")

Reply


@meribold 15 days

Replying to @meribold 🎙

This is basically a poor man's Dura (https://news.ycombinator.com/item?id=29784238) in 20 lines of Bash that is run manually instead of using a background process and a timer.

Reply


About Us

site design / logo © 2022 Box Piper