Skip to content

Instantly share code, notes, and snippets.

@upbit
Created March 18, 2015 15:26
Show Gist options
  • Save upbit/77c227ee896a495c196e to your computer and use it in GitHub Desktop.
Save upbit/77c227ee896a495c196e to your computer and use it in GitHub Desktop.
GitHub config for China
[url "git@github.com:"]
# Always use GitHub SSH protocol to push.
# Allows use of git:// for public repositories with push access
#pushInsteadOf = git://github.com/
pushInsteadOf = https://github.com/
[url "https://github.com/"]
# Use HTTP for GitHub instead of git:// or git@
# Enable this in networks where git:// or git@ are blocked.
#insteadOf = git://github.com/
#insteadOf = git@github.com:
[url "git://github.com/"]
# Use SSH for GitHub instead of https://
# Enable this in networks where https:// has issues.
insteadOf = https://github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment