Skip to content
bash
# 配置git email
git config --global user.email "759337828@qq.com"

# 配置git name
git config --global user.name "rubyc"

# 查看git配置
git config --list

# 配置git代理
git config --global http.proxy "socks5://127.0.0.1:1080"
git config --global https.proxy "socks5://127.0.0.1:1080"


# 取消git代理
git config --global --unset http.proxy
git config --global --unset https.proxy

# git 登录
git login

# git 登出
git logout

# 测试git登录
ssh -T git@github.com

# ssh-key
ssh-keygen -t rsa -C "759337828@qq.com"

# 推送指定分支
git push origin main

# 禁用ssl
git config --global http.sslVerify false

# post-buffer
git config --global http.postBuffer 1048576000