@mitsuru793/clone-ssh
v0.2.0
Published
You can generate url for ssh from github repository. This is useful when you can switch account with ssh.
Readme
clone-ssh-url
You can generate url for ssh from github repository. This is useful when you can switch account with ssh.
git clone (clone-ssh-url --pre-domain mike. https://github.com/mike/repo)How to use
clone-ssh-url https://github.com/mike/repo
# => [email protected]:mike/repo.git
clone-ssh-url --domain example.com https://github.com/mike/repo
# => [email protected]:mike/repo.git
clone-ssh-url --pre-domain pre. https://github.com/mike/repo
# => [email protected]:mike/repo.gitYou can pass others, but not only http url of github repository.
clone-ssh-url --pre-domain pre. [email protected]:mike/repo.git
# => [email protected]:mike/repo.git
clone-ssh-url --pre-domain pre. mike/repo
# => [email protected]:mike/repo.git
# default domain is github.com