-
-
Save larsbutler/d1c841e2f33cee9fcc4216d152cb781e to your computer and use it in GitHub Desktop.
URL rewriting in .gitconfig
This file contains 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 "git@github.com:"] | |
pushInsteadOf = "git://github.com/" | |
[url "git@github.com:"] | |
pushInsteadOf = "https://github.com/" |
This file contains 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 = git@github.com: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment