Skip to content

Instantly share code, notes, and snippets.

@serbrech
Forked from stevenh512/gitconfig-git
Created November 13, 2015 08:39
Show Gist options
  • Save serbrech/b66c92448faba2ff08b3 to your computer and use it in GitHub Desktop.
Save serbrech/b66c92448faba2ff08b3 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