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
Written by Adam Stankiewicz
Related protips
3 Responses

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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#