Automatically convert GitHub origin URLs to the ssh protocol
npm i -g git-remote-to-ssh
This has been aliased as git-ssh
.
Usage
$ git-remote-to-ssh <input>
Options
-r, --remote Specify a different remote
Examples
$ git-remote-to-ssh
Remote origin: [email protected]:RichardLitt/git-remote-to-ssh.git
$ git-remote-to-ssh -r test
Remote test: [email protected]:RichardLitt/whatever.git
Issues and PRs accepted.
MIT © Richard Littauer 2017