Skip to content

Instantly share code, notes, and snippets.

@abnerCrack
Last active September 10, 2021 09:42
Show Gist options
  • Save abnerCrack/6ae4a160bdf1ee610c4341d4166ff103 to your computer and use it in GitHub Desktop.
Save abnerCrack/6ae4a160bdf1ee610c4341d4166ff103 to your computer and use it in GitHub Desktop.
# 解决阿里云、腾讯云无法git clone
# 镜像到阿里源
git config --global url."https://github.com.cnpmjs.org/".insteadOf "https://github.com/"
git config --global protocol.http.allow always
# 备选
git config --global url."https://hub.fastgit.org/".insteadOf "https://github.com/"
git config --global protocol.http.allow always
# Golang 无法go get
# 镜像到 goproxy.io
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
# npm 、yarn 镜像源
https://gist.github.com/wayou/baa18849de3424db5d7ca24e94645c25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment