[フレーム]
Last Updated: September 27, 2019
·
1.301K
· sheerun

git clone github:user/repo

Enter the following in your shell:

cat <<-EOF >> ~/.ssh/config
 Host github
 HostName github.com
 User git
EOF

Now you can type:

git clone github:rails/rails

Source: link

3 Responses
Add your response

Why not use hub?

over 1 year ago ·

No ruby needed.

over 1 year ago ·

I have at least 20 hosts defined in my .ssh/config but it never occurred to me to add github! Thanks for this.

over 1 year ago ·

AltStyle によって変換されたページ (->オリジナル) /