News for hackers. Stuff that matters.
Re:I struggled with Git, so I'm making a game to spare other... by Izkata on Sunday March 02, 2025 @11:46PM (#43238389)
> Like instead of `git rebase -i` and tedious text edits, why can't I just ctrl-select some commits, ctrl-C and ctrl-V?

git obeys $EDITOR, so you can get that like this with whatever text editor you want:

  EDITOR=gedit git rebase -i foo
Re:I struggled with Git, so I'm making a game to spare other... by timhh on Monday March 03, 2025 @07:55AM (#43241281)
No, I mean why can't you select commits in the graph and copy/paste them. I wasn't talking about copy/pasting the lines of text in the `git rebase -i` file.
Re:I struggled with Git, so I'm making a game to spare other... by skydhash on Monday March 03, 2025 @10:31AM (#43242686)
Because the graph is a query and not a model with methods on it. If you realy want to, you can code it (and deal with conflicts)