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

Go use Magit! Probably my favorite part of Emacs.


It’s literally the reason that keeps me in emacs, honestly.


I definitely tried and it definitely didn't work for me because something something ~/.Xdefaults or whatever.

But I hear good things.


It’s my favorite git client altogether.


yeah, I keep Emacs open just for Magit even when using other editors.


Magit revolutionized my git workflow. Rebase went from being a chore that I put off to easy peasy. My coworkers think I'm some kind of git wizard.


For me, being able to go straight from a selection in a code file to a log of all changes to that specific code, which I can then filter further, is what gets the strongest reactions from my coworkers.


WHAT!? You can use M-x magit-log-buffer-file with an active selection and see only the changes to the selected portion? This is so obvious in hindsight and so cool... Thanks a million!


TIL magit-log-buffer-file...


It's unfortunately hidden because it has no default keybinding iirc, but I love this feature. I think I discovered it by wondering if it exists, so I searched through the M-x candidates with orderless and typed in terms that I guessed could be part of the right name.


C-c M-g l gets you there. (C-c M-g leads to a submenu that also has blame.)

Until this thread I didn't know it could also do regions.


What?! How do you do this? I love magic but haven't discovered this.


Anyone with a recommendation for a magit tutorial? Thanks


The documentation is very good. The Getting Started[0] page has all you need for basic operations. I haven't watched this particular video[1], but Prot's other Emacs content is great.

[0]: https://magit.vc/manual/magit/Getting-Started.html

[1]: https://www.youtube.com/watch?v=2-0OwGTt0dI


I watched the video. It is quite informative. The best thing about emacs videos are they creator is that all the keycommands show on the screen by default. Arguably one of the slickest features in emacs.




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

Search: