News for hackers. Stuff that matters.
Re:Git undo: We can do better by ethbr0 on Monday June 21, 2021 @01:39PM (#27581531)
> levels of state

This is the crux for me. Command naming is completely unrelated to and unindicative of state.

It feels like surely there's an opportunity for the basic CRUD operations to be collapsed down into a standard "{action} {source} {target}" style.

There will be nuances, specifically around branching, but the basics should be basic. As opposed to a Swiss Army knife, where you have to pull out the scissors and squeeze them three times before you can unfold and use the blade.

Re:Git undo: We can do better by weaksauce on Monday June 21, 2021 @09:13PM (#27586822)
i can't stress just how great magit is. it's worth trying out emacs for just that. something like spacemacs as a wrapper is useful too since it gives you some well configured defaults for file operations. emacs is a kinda trash text editor but an amazing text utility toolkit that enabled magit.
Re:Git undo: We can do better by hbogert on Tuesday June 22, 2021 @03:32PM (#27596104)
I'll stress with you. Even if you hate Emacs, magit alone is a valid single use-case to start up emacs.
Re:Git undo: We can do better by ryanmentor on Monday June 21, 2021 @03:52PM (#27583530)
Are there any git frontends that do this today?
Re:Git undo: We can do better by unknown_error on Monday June 21, 2021 @05:52PM (#27585010)
The one built into IntelliJ IDEs is pretty good. SourceTree is decent too. They are both cover the vast majority of day to day operations. I only ever very rarely have to resort to the command line for ritualistic summoning of the git demons.
Re:Git undo: We can do better by pama on Monday June 21, 2021 @08:41PM (#27586561)
Magit comes close to this action-source-target model whenever possible.