Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well for me it's happened hundreds of times. Specifically I've very often wanted to do another git rebase -i in the middle of the first one, usually because I changed my mind about something and want to make changes to an earlier commit in my stack.

> IMO that's good because I don't think enabling that type of chaotic, jumpy workflow is healthy or good.

Nah, it's wonderful. You see it as chaotic and jumpy because the conditions Git creates makes it feel chaotic and jumpy. It's like being terrified of multithreaded code if you're not using Rust or a purely functional language.



> Specifically I've very often wanted to do another git rebase -i in the middle of the first one, usually because I changed my mind about something and want to make changes to an earlier commit in my stack

I think this is what `git rebase --edit-todo` is for.

>Nah, it's wonderful. You see it as chaotic and jumpy because the conditions Git creates makes it feel chaotic and jumpy.

Fair enough. `jj` probably isn't right for me, but I'm happy it works well for you!


Been a long time since I used git, but --edit-todo only changes what's still to come, right? It doesn't let you go back and edit earlier commits in the stack.


Ah, yeah it does only allow you to modify the remaining todos :/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: