News for hackers. Stuff that matters.
Re:Show HN: I wrote about book about rebasing in Git by PascalPrecht on Friday January 31, 2020 @04:54AM (#22200388)
You should!

If there's one tool I'd recommend everyone to learn it's rebasing. Especially interactive rebasing because it enables things like splitting commits apart, squashing them together and even run automated programs.

Re:Show HN: I wrote about book about rebasing in Git by WorldMaker on Friday January 31, 2020 @01:51PM (#22204356)
The interactive tools exist outside of rebase. You can also split commits apart as you work on them with for example `git add -i` without needing to rebase.

I've met junior developers I'd never trust to get rebase right, but interactive add was an important tool to teach them.

Re:Show HN: I wrote about book about rebasing in Git by PascalPrecht on Saturday February 01, 2020 @05:34AM (#22209814)
`git add i` is indeed powerful and lets you interactively craft your index before you create a commit. It doesn't enable you to split up an existing commit though.
Re:Show HN: I wrote about book about rebasing in Git by WorldMaker on Monday February 03, 2020 @12:04PM (#22226137)
Interactive hunk splitting the index maps to the mental model of "splitting the work in progress commit". That may be all a developer needs in a "rebase never" workflow.
Re:Show HN: I wrote about book about rebasing in Git by PascalPrecht on Tuesday February 04, 2020 @03:09AM (#22233408)
Certainly can not disagree :)

I'm not trying to convince anyone here. By now I've sold over 230 copies and I"m getting really positive feedback. So it must be useful to someone.