Skip to content

Instantly share code, notes, and snippets.

View BrunoBonacci's full-sized avatar

Bruno Bonacci BrunoBonacci

View GitHub Profile
@dotemacs
dotemacs / magit-open.org
Created June 9, 2014 18:50
Open remote repo in browser

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)))