Skip to content

Instantly share code, notes, and snippets.

@larsbutler
Forked from stevenh512/gitconfig-git
Created October 18, 2016 17:41
Show Gist options
  • Save larsbutler/d1c841e2f33cee9fcc4216d152cb781e to your computer and use it in GitHub Desktop.
Save larsbutler/d1c841e2f33cee9fcc4216d152cb781e to your computer and use it in GitHub Desktop.
URL rewriting in .gitconfig
# 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/"
# 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