常用备忘

git

设置git 代理

分别设置http和https代理,根据代理协议的不同分别设置

 git config --global http.proxy 'socks5://127.0.0.1:10808' 
 git config --global https.proxy 'socks5://127.0.0.1:10808'
# git config --global https.proxy 'http://127.0.0.1:10808'
# git config --global https.proxy 'http://127.0.0.1:10808'

goframe gf工具 生成代码

gf  gen  model  -t  table  -l  "mysql:user:password@tcp(ip:3306)/database"

hugo 博客本地设置

// 先拉取项目
git clone https://github.com/Desdemo/xxxxx.git
// 主题是通过git submodule 关联的,所以需要单独拉取
git submodule init
git submodule update