1. golang跨平台编译
// 如:
env GOOS=linux GOARCH=amd64 go build *.go
2. ssh
ssh -p port username@host
3. scp
scp -P port local_file username@host:remote_file
scp -P port -r local_dir username@host:remote_dir
4. github pull request
# clone
git clone https://github.com/coofee/tinker.git
# 添加tinker
git remote add tinker https://github.com/Tencent/tinker
# 从tinker的dev分支创建功能分支
git branch compat-gradle-plugin-3.x-dev tinker/dev
git checkout compat-gradle-plugin-3.x-dev
# push分支到origin
git push -u origin compat-gradle-plugin-3.x-dev
# 合并tinker的dev分支代码
git pull tinker dev
# 删除远程分支
git push origin --delete compat-gradle-plugin-3.x
5. markdown
在markdown中直接显示dot绘制的图片pr