New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

github-origin-https-to-ssh

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-origin-https-to-ssh

Convert GitHub origin urls from HTTPS to SSH

latest
Source
npmnpm
Version
1.0.9
Version published
Maintainers
1
Created
Source

github-origin-https-to-ssh

Automatically convert GitHub origin urls from https to ssh

This is an evil shell script that really ought to be done in Javascript with better checks.

Install

npm i -g github-origin-https-to-ssh

Usage

This has been aliased as https-to-ssh.

# In git repo with bad URL
$ https-to-ssh
## All fixed.

This also works for enterprise or non-GitHub git remotes.

$ https-to-ssh github.corporation.org
## All fixed for enterprise

Contribute

Issues and PRs accepted.

License

Shell script from: https://gist.github.com/m14t/3056747 MIT © Richard Littauer 2017

Keywords

github

FAQs

Package last updated on 28 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts