Hacker News new | ask | show | jobs
by jhvkjhk 1853 days ago
I heard lots of praise to Magit. Is there a way to use it like a standalone git client? Like tig, lazygit, etc.
4 comments

You could just alias this in your shell:

    alias magit='emacs -nw --eval "(magit-status)"'
I was reading the thread and replied to a very similar situation. The only addition was that if you want only a magit interface, it makes no sense to load the rest of your emacs config, so you could add a special magit initialization file, and just add -Q --load magit-init.el
Thanks, that’s exactly what I want.
I would strongly recommend first doing some emacs tutorials -- you don't have to start using emacs as your editor, but (in my opinion) magit does assume you have some understanding of how emacs works.
Honestly, you'd only get a fraction of the power of magit doing it that way. It's power is due to it being thoroughly integrated into the environment you use for editing all kinds of text every single day. Imagine being able to control git using the same commands your used to in whatever text editor you use.
Sure, just open the git repo in a magit. I do it almost every day.
Did you mean "open the git repo in a magit buffer"? Because then I'd agree.

To address GP comment, you can just install vanilla emacs, then install magit, and just use that as your "standalone" app.