Re:Magit, the magical Git interface (2017)
by b3morales on Friday October 22, 2021 @01:03PM
(#28959716)
> I was pretty skeptical about magit at first because I know all the basic git commands for my daily workflows by heart and I don't find them to be very difficult or slow to use
Same here. I've found completing-read for branch names to be one of the biggest draws for Magit, personally. I can tab-complete them in my shell, but it's much slower and less reliable.
Re:Magit, the magical Git interface (2017)
by gpderetta on Friday October 22, 2021 @06:51AM
(#28955648)
I find magit very nice for interactive rebases. The ability to instant fixup older commit is also nice.
But yes, I do drop to the shell for some actions when I know exactly the sequence of git commands that I need to execute. Also somehow I often use the shell to switch branches, some habits are hard to change.
Re:Magit, the magical Git interface (2017)
by clojureyoureyes on Saturday October 23, 2021 @07:28AM
(#28967443)
> Autocompletion is supported, but git provides this as well.
git, as a classic unix cli app, doesn't provide autocompletion
git, as a classic unix cli app, doesn't know nothing about the result of a previous command, etc.
These aren't the git flaws, but Unix ones.
But does it make me much more productive? I don't know.
While developing typically I add some debug code mangled with the actual stuff. So when I am ready to commit I've got to remove that first. I had done this manually in the editor before, now from within magit I can just select the lines I'd like to stage and press "s". Then proceed to commit pressing "c". Finally, by just selecting the remaining lines and hitting "k" ("kill") I get rid of all debug code. That's pretty nice and I will never ever forget to remove debug code again. Similarly, you can manage your git stash with a couple of key strokes.
Branching and merging works well, too. But I don't think magit makes it much easier as you still need to type in branch names. Autocompletion is supported, but git provides this as well.
Merge collisions are still a pain. And for more complicated tasks like interactive rebases, reflog rescues or bisecting I still keep dropping to the shell. I actually like the expliciteness, here, because it prevents me to stupid things in dangerous maneuvers. And "git help" is always there to remind me on all gazillion command line arguments.