diff --git a/git-open b/git-open index ad8806b..f847a6d 100755 --- a/git-open +++ b/git-open @@ -51,6 +51,10 @@ if grep -q gist.github <<<$giturl; then # Github elif grep -q github <<<$giturl; then giturl=${giturl/git\@github\.com\:/https://github.com/} + + # handle SSH protocol (links like ssh://git@github.com/user/repo) + giturl=${giturl/#ssh\:\/\/git\@github\.com\//https://github.com/} + providerUrlDifference=tree # bitbucket