vybvug
Last Updated: February 25, 2016
·
967
· 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

1829

Why not use hub?

over 1 year ago ·
1840

No ruby needed.

over 1 year ago ·
1947

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 ·
Filed Under