git
2026/3/4小于 1 分钟约 173 字
设置代理
# 设置代理
# HTTP/HTTPS 代理
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
# SOCKS5 代理(推荐,git 支持)
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
# 查看配置
git config --global --get http.proxy
# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy常规操作
# 添加远程仓库
git remote add origin xxx
# 查看已经添加
git remote -v
# git add push
# 提交到具体分支
git push origin master
# 删除远程仓库
git remote rm origin上传大仓库代码:增大缓冲区
# 执行下面这几条命令
git config --global http.postBuffer 524288000
git config --global http.version HTTP/1.1
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999