News for hackers. Stuff that matters.
Re:Lazygit: Simple terminal UI for Git commands by Seb-C on Wednesday July 19, 2023 @11:37AM (#36788156)
Wow, I never realized that changing the order of commits in an interactive rebase was a legit operation.

Thanks for the tip!

Re:Lazygit: Simple terminal UI for Git commands by shaftway on Wednesday July 19, 2023 @02:24PM (#36790950)
Another way to handle this if you haven't made the change yet is to do a `git rebase -i head~4` (or however far back) and mark the place where the change needs to happen as "edit". Make your change, add the file, then `git rebase --continue`.

If you've already made the change but haven't committed it, you can stash it before doing the rebase, then pop the stash while editing that commit.