Skip to content

Instantly share code, notes, and snippets.

@upbit
Created March 18, 2015 15:26
Show Gist options
  • Select an option

  • Save upbit/77c227ee896a495c196e to your computer and use it in GitHub Desktop.

Select an option

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