Git
设置用户名和邮箱
git config --global user.name "hui"
git config --global user.email "cn_hui@163.com"
添加/更新子模块
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
git submodule update --init --recursive
设置代理
系统代理
export HTTP_PROXY=http://127.0.0.1:7897
export HTTPS_PROXY=http://127.0.0.1:7897
永久代理
git config --global https.https://github.com.proxy http://127.0.0.1:7897
临时代理
git -c https.proxy=http://127.0.0.1:7897 -c http.proxy=http://127.0.0.1:7897 clone https://github.com/mbadolato/iTerm2-Color-Schemes.git
国内源
Python
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
NPM
npm config set registry https://registry.npmmirror.com