git常用操作技巧和命令
1.git更改config配置命令
查看配置
git config --list
修改全局配置
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
2.git 更换远程仓库地址命令
若无仓库地址,添加仓库地址
git remote add origin https://github.com/user/repo.git
查看当前的远程仓库地址
git remote -v
更改远程仓库地址
git remote set-url origin https://new-url-to-repo.git
3.设置代理
git config --global http.proxy http://proxy.example.com:8080
git config --global https.proxy https://proxy.example.com:8080
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy

浙公网安备 33010602011771号