Last Updated: September 09, 2019
· tuxcanfly

Pretty urls in git clone

Yes, you don't need to go to that github page and copy the clone url again, just use this config

git config --global gh

git config --global bb

and use

git clone gh:octocat/Spoon-Knife
git clone bb:mchaput/whoosh

More: (search for insteadOf)

2 Responses
Add your response

I have this in my .gitconfig

[url ""]
  insteadOf = gh
over 1 year ago ·

yup, using the git config --global writes to your ~/.gitconfig

over 1 year ago ·