20

I'm wondering if there is a magit equivalent to git remote -v to list remotes and their URL's defined on a git repository. The magit remotes popup offers options to add, remove, rename, and set url, but I don't see any sort of listing mechanism.

Sample git remote -v output:

origin  ebpa@example.com:/var/git/myproject.git (fetch)
origin  ebpa@example.com:/var/git/myproject.git (push)

magit-list-remotes is non-interactive and only lists remote names.

  • I do not know what the current version of magit presently has to offer, but I wrote up my own push to multiple remotes (a couple of years ago) that begins with git remote -v using start-process -- Emacs — How to push a Git repository to multiple remotes: stackoverflow.com/a/23178396/2112489 – lawlist Jul 27 '16 at 20:59
21

The buffer generated by magit-show-refs-popup (y) will give output that includes something like

Origin (ebpa@example.com:/var/git/myproject.git) (2)
  origin/HEAD               -> origin/master
  origin/master             Commit message

It is working with the output of git branch -vvr rather than git remote -v.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.