Use borg package. You'll get rock solid emacs. Worth the effort.
Link: https://github.com/emacscollective/borg
Seems worth a look, simply because it’s from the magit author.
Don’t think stuff like borg is necessary now that Emacs has built in support for installing packages from git repos (use-package :vc)
Link: https://github.com/emacscollective/borg
Seems worth a look, simply because it’s from the magit author.