Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

git-remote-to-ssh

RichardLitt36MIT2.0.0

Convert GitHub origin urls from HTTPS to SSH

github, ssh, origin, https, remote, set-url, url

readme

git-remote-to-ssh

Automatically convert GitHub origin URLs to the ssh protocol

Install

npm i -g git-remote-to-ssh

Usage

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: git@github.com:RichardLitt/git-remote-to-ssh.git
  $ git-remote-to-ssh -r test
  Remote test: git@github.com:RichardLitt/whatever.git

Contribute

Issues and PRs accepted.

License

MIT © Richard Littauer 2017