logoalt Hacker News

mattdeboardyesterday at 5:16 PM7 repliesview on HN

I've been retired from emacs for several years now but I'm still looking for a magit replacement that is independent of my editor. Vscode's magit extension is really good but i split my time between IntelliJ and vscode.

Anyone know of something like this?


Replies

sirnyesterday at 5:57 PM

When I still used Git, I used to have a minimized `magit-init.el` that essentially did:

    (setq user-emacs-directory (format "~/.emacs.d/magit/%s/" emacs-version))
    (setq custom-file (concat user-emacs-directory "custom.el"))
    (setq make-backup-files nil)
    (setq auto-save-default nil)
    (setq create-lockfiles nil)
    (setq inhibit-startup-screen t)
    (setq initial-scratch-message nil)

    (require 'magit)
    (defun setup-standalone-magit ()
      (magit-project-status)
      (delete-other-windows))
    (add-hook 'after-init-hook 'setup-standalone-magit)
And a small wrapper (`~/.local/bin/magit`):

    #!/bin/sh
    if [ "$(git rev-parse --is-inside-work-tree)" = "true" ]; then
        exec emacs -nw -q --no-splash -l "/path/to/magit-init.el"
    fi
It worked well for me because I can reuse all my keybindings (evil + leader keys with `general`) and my workflow is fully in the terminal. (I have since moved on to Jujutsu, and `jjui` is filling this gap for me right now, but it's not quite a magit-for-jj).
throw567643u8today at 11:42 AM

I've never found a decent magit replacement since leaving emacs over to vim. There is a Vim attempt at a magit clone, but it is buggy as hell.

tptacekyesterday at 5:35 PM

Lazygit is the closest thing I've seen; it's what I use on remote hosts when TRAMP-ing into Magit would be too painful.

show 1 reply
jasaldivarayesterday at 5:57 PM

If you are on Linux/Gnome, try out Stage:

https://flathub.org/en/apps/io.github.aganzha.Stage

WolfeReaderyesterday at 11:37 PM

I was a loyal magit user for a decade. Now I use jujutsu from the command line. It's actually really nice.

rs_rs_rs_rs_rsyesterday at 6:19 PM

>i split my time between IntelliJ and vscode

The IntelliJ git client is my favorite by far, I am curious what do you not like about it?

show 2 replies
cmrdporcupineyesterday at 5:27 PM

https://github.com/altsem/gitu

show 1 reply