vybvug
Last Updated: February 25, 2016
·
940
· sheerun
Photo on 08.01.2013 at 04.15

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

Say Thanks
Respond

3 Responses
Add your response

1829
Me

Why not use hub?

over 1 year ago ·
1840
Photo on 08.01.2013 at 04.15

No ruby needed.

over 1 year ago ·
1947
D15bdf32a59af3d58e3efaedc1d2e56b

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