• 克隆指定分支
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
最后修改:2025 年 01 月 07 日
如果觉得我的文章对你有用,请随意赞赏