0%

git相关命令

1
2
3
4
5
6
7
8
9
10
11
12
13
git reset --soft HEAD~   撤销当前本地提交的
git status 查看当前修改的状态

git config --global http.proxy http://127.0.0.1:7890 让git使用代理
git config --global https.proxy http://127.0.0.1:7890
git config --get https.proxy 测试是否走代理

git config --global --unset http.proxy 关掉代理
git config --global --unset https.proxy

git config --global --get http.proxy 确认,没有输出就说明清掉了
git config --global --get https.proxy