Lurker News

Comments (229) 38 threads

Earlier comments
pjc506 replies#
You know what would make me faster at git?

"git undo" : undo the last git command line, whatever it did. Especially if you don't understand what it did or it overwrote local files.

iwwr#
You could store your git refs in another git repo and take a snapshot of those after each command that changes things.
sverhagen#
Nice, but the README suggests it only does commits. I already have a simple alias for that. The parent comment wanted to undo anything.
karmakaze#
Many operations have an --abort option during the process. In other cases, there's `git reflog`.
floo#
Not a CLI, but GitKraken does that for most commands.
rplnt#
Some operations can't be undone. So you would need to wrap them in commands that would make undone possible. That would be interesting...
karmakaze2 replies#
This looks great. For some reason I don't mind using the GUI tools to view history and branches but for commits always use the command line. This should save some time and much typing.
mehrdadn#
I use TortoiseGit's GUI for everything except features that it doesn't have, like git add -p. It makes life so much easier when you can just right-click and go to "Show Log", search for something you care about, then right-click that one commit in 2017 that messed things up and click "Browse repository" to look at the entire repo & diff arbitrary files without checking out a single file messing up your work tree. Trying to do every single thing with a command line interface just sounds insane to me.
debacle#
Different mental contexts, I think. I do the same thing.
andrewshadura2 replies#
I'm mostly using plain Git, but there's one thing for which I needed a TUI: line-by-line selective committing.

After trying to find something I liked, I ended up porting crecord extension for Mercurial to Git: https://github.com/andrewshadura/git-crecord

michaelmcmillan1 reply#
git add --interactive?
andrewshadura#
That doesn't have line-by-line functionality, and it's not interactive.

If you had a look you'd see git add -i is not even close to it ;)

surajrmal#
Thank you for this. I've been missing mercurial interactive committing for a while.

Load more comments