Re:Commits are snapshots not diffs (2020)
by chriswarbo on Thursday April 08, 2021 @03:17PM
(#26742591)
I avoid rebase because it rewrites history, and I'd rather have an accurate log of what happened. Cherry-pick can certainly be useful for grabbing particular commits; although I find myself more often using `format-patch`+`am` to grab particular files (which also works across repos).
[ Parent
| on HN ]
Re:Commits are snapshots not diffs (2020)
by bentcorner on Thursday April 08, 2021 @03:30PM
(#26742741)
I use rebase often because it rewrites history - it lets me squash commits into a conceptual single commit, or re-order commits together that chronologically make more sense next to each other.
Re:Commits are snapshots not diffs (2020)
by iudqnolq on Thursday April 08, 2021 @04:07PM
(#26743140)
I never understood the "rewrites history" argument. The original commits don't necessarily faithfully represent my thought process, I might have a larger commit because I got distracted in the middle of the day or a shorter commit because I wanted to make sure my code was backed up at the end of the day.