27

I'm wondering if there is a magit equivalent togit 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.

Samplegit remote -v output:

origin[email protected]:/var/git/myproject.git (fetch)origin[email protected]:/var/git/myproject.git (push)

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

askedJul 27, 2016 at 20:50
ebpa's user avatar
1
  • 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 withgit remote -v usingstart-process --Emacs — How to push a Git repository to multiple remotes:stackoverflow.com/a/23178396/2112489CommentedJul 27, 2016 at 20:59

1 Answer1

29

The buffer generated bymagit-show-refs-popup (y) willgive output that includes something like

Origin ([email protected]:/var/git/myproject.git) (2)  origin/HEAD               -> origin/master  origin/master             Commit message

It is working with the output ofgit branch -vvr rather thangit remote -v.

answeredJul 27, 2016 at 21:59
Kyle Meyer's user avatar

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.