Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
URL rewriting in .gitconfig
# Use git and git+ssh instead of https
[url "git://"]
insteadOf =
[url ""]
pushInsteadOf = "git://"
[url ""]
pushInsteadOf = ""
# Use https instead of git and git+ssh
[url ""]
insteadOf = git://
[url ""]
insteadOf =

This comment has been minimized.

Copy link
Owner Author

@stevenh512 stevenh512 commented Jun 11, 2012

If you're behind a firewall, on a slow internet connection or have some other reason to _always_ use https (or git+ssh), append one of these to your .gitconfig and you're good to go. 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.