Fork me on GitHub
#emacs
<
2020-05-29
>
hindol09:05:54

(Sorry if this belongs to #off-topic) I have always heard magit is awesome but never realized to what extent. What sorcery is this?

milgra09:05:20

It's the biggest sorcery in VCS history after git! :) Managing all versioning related stuff in just one text buffer is an extreme productivity jump, like moving to emacs or using a tiling window manager.

practicalli-johnny09:05:28

@hindol.adhya magit is magic. I used to obsessively use the command line for git, but now I use Magit for everything, even creating pull requests and gists from Emacs. Magit makes reset and rebasing so easy too https://practicalli.github.io/spacemacs/source-control/magit/ (some of the videos are a little old but are mostly correct, i.e. magithub has been replaced by forge)

hindol09:05:10

I have the exact same experience. I have so far used git from command line because none of the GUIs/wrappers stuck with me and I never felt git CLI is a problem. But after going through the Magit manual yesterday and today, I already feel more productive. The mnemonic keybindings are great!

hindol09:05:44

Magit solves a problem I never knew existed.

💪 4
sogaiu12:05:10

i ❤️ magit. on the subject of guis for git, i used to use smartgit before i used magit. i like their index editor idea a lot: http://www.syntevo.com/doc/display/SG/Staging%2C+unstaging+and+the+Index+Editor that really helped in developing my mental model of how some things work in git.

hindol12:05:39

I have used git add -p to similar effect, for staging. Magit makes it simpler. But that's not the selling point for me. I love how every command imaginable is just two keystroke away from the status buffer. Even complex operations like rebase.

sogaiu12:05:14

yeah, that's nice too :)

sogaiu12:05:48

i think the author may have abstracted that functionality out into a library iirc

practicalli-johnny12:05:53

and if you cant find what you want, ! menu in magit status will let you type a git command. I think I used this once in 4 years

practicalli-johnny12:05:38

I am enjoying using forge to create issues and pull request from within Emacs too https://practicalli.github.io/spacemacs/source-control/magit/forge.html

👍 4
hindol13:05:12

Yeah, forge is next in my list of things to learn.

hindol13:05:07

@U05254DQM FYI, your tutorial on forge helped me setup ~/.authinfo.gpg. I was struggling with it without your guide. Thank you!

practicalli-johnny14:05:24

I think the last time I looked at PGP was at the end of the 1990's, so I was a bit lost to start with. EasyPG in Emacs did help though. I need to expand on creating a PGP key with gpg (although a key is optional)

dev-hartmann14:05:09

I love the 'magit solves an issue I never knew existed' one. exactly how I felt when I really gave it a try

dev-hartmann14:05:17

cli feels very barbaric now 😄

dev-hartmann14:05:26

will checkout forge, as I'm not aware what it's all about

hindol14:05:43

What magit is to git, forge is to Github.

practicalli-johnny14:05:40

@U0J8XN37Y in a nutshell, work with github (gitlab and other similar services) issue and pull requests in the magit status buffer. Also create forks and pull requests (no need to visit GitHub to press the green 'create pull request' button

dev-hartmann14:05:02

thanks @U05254DQM! Just reading through your page on it. creating PRs from magit is infact another layer of icing on the cake. will include that into my setup!