Created
June 11, 2012 10:51
-
-
Save stevenh512/2909546 to your computer and use it in GitHub Desktop.
URL rewriting in .gitconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use git and git+ssh instead of https | |
[url "git://github.com/"] | |
insteadOf = https://github.com/ | |
[url "[email protected]:"] | |
pushInsteadOf = "git://github.com/" | |
[url "[email protected]:"] | |
pushInsteadOf = "https://github.com/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use https instead of git and git+ssh | |
[url "https://github.com/"] | |
insteadOf = git://github.com/ | |
[url "https://github.com/"] | |
insteadOf = [email protected]: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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. 😁