开发工具

开发工具

git

# 合并分支内容到当前缓冲区
git merge --squash dev

# 查找被 .gitignore 忽略的文件 - 会匹配子目录下的 gitignore 文件
git ls-files -o -i --exclude-standard

go

go env -w GOPROXY=https://goproxy.cn,direct

export GOPROXY=https://goproxy.io,direct

python


# 简单的web服务,可放置 index.html 页面使用
python -m BaseHTTPServer
python -m SimpleHTTPServer [8000]


# py3 开启一个文件服务器
python -m http.server

# 更新私有 pypi 仓库的索引
dir2pi /data/share/pypi
最后更新于