- 克隆指定分支
git clone -b master http://gitlab.com/xxxx/xxxx.git
- 克隆分支到到指定目录下(指定项目名)
git clonehttps://gitlab.com/xxxx/xxxx.git name
- 查看本次commit的提交信息
git log
- 查看本次commit的提交内容
git log -p
- 查看commit的详细内容
git show xxxxxxxxxxxx
- 设置全局HTTP/HTTPS代理
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
- 取消设置HTTP/HTTPS全局代理
git config --global --unset http.proxy
git config --global --unset https.proxy