Open remote repo
(defun parse-url (url)
"convert a git remote location as a HTTP URL"
(if (string-match "^http" url)
url
(replace-regexp-in-string "\\(.*\\)@\\(.*\\):\\(.*\\)\\(\\.git?\\)"
"https://\\2/\\3"
url)))
(defun magit-open-repo ()
"open remote repo URL"
(interactive)
(let ((url (magit-get "remote" "origin" "url")))
(progn
(browse-url (parse-url url))
(message "opening repo %s" url))))
(add-hook 'magit-mode-hook
(lambda ()
(local-set-key (kbd "o") 'magit-open-repo)))
Thanks! Quite useful. I have created a more sophisticated function that also opens the current file or directory in the remote location automatically, may be of interest. (Link to commit)