Skip to content

Instantly share code, notes, and snippets.

@kreig303
Forked from Kovrinic/.gitconfig
Created May 21, 2019 15:14
Show Gist options
  • Save kreig303/312b271b563ffd16d75e9531b8723f68 to your computer and use it in GitHub Desktop.
Save kreig303/312b271b563ffd16d75e9531b8723f68 to your computer and use it in GitHub Desktop.
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "git@github.com:"]
insteadOf = git://github

Replace git:// with https://

Rewrite any git:// urls to be https:// but, it won't touch sshurls (git@github.com:)

git config --global url."https://github".insteadOf git://github

or replace with ssh

Use ssh instead of https://

git config --global url."git@github.com:".insteadOf "https://github.com/"

sauce: https://gist.github.com/grawity/4392747 & @hansdg1

@kreig303
Copy link
Author

kreig303 commented May 21, 2019

git config --global http.sslVerify false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment