Skip to content

Instantly share code, notes, and snippets.

@nyaapass
Last active January 1, 2019 14:33
Show Gist options
  • Save nyaapass/dc134c09ccad180db1fbd378fa6a3052 to your computer and use it in GitHub Desktop.
Save nyaapass/dc134c09ccad180db1fbd378fa6a3052 to your computer and use it in GitHub Desktop.

choco (需要管理员权限)

choco config set proxy http://127.0.0.1:1080
# choco config unset proxy
choco install git 
choco install node-lts
choco install yarn --ignore-dependencies

# 更新
choco upgrade all
@nyaapass
Copy link
Author

nyaapass commented Jun 8, 2018

yarn

yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global

npm

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

@nyaapass
Copy link
Author

nyaapass commented Jul 18, 2018

git

git config --global user.name '用户名'
git config --global user.email '邮箱地址'
git config --global core.autocrlf false
# git config --global http.proxy 'socks5://127.0.0.1:1080'
# git config --global https.proxy 'socks5://127.0.0.1:1080'

bash.bashrc

# Socks proxy
alias ss="ALL_PROXY=socks5://127.0.0.1:1080"

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