knsh14 / vim-github-link

generate github link from selected lines in vim
MIT License
62 stars 15 forks source link

Support custom redirects in gitconfig #10

Closed robertgzr closed 4 years ago

robertgzr commented 5 years ago

Switch from using git config --get remote.origin.url to git ls-remote --get-url origin which resolves configs like this:

[url "git@github.com:"]
    insteadOf = "gh:"
    insteadOf = "https://github.com/"
    pushInsteadOf = "github:"
    pushInsteadOf = "git://github.com/"