git操作(六)git杂记

229 阅读1分钟

创建本地分支和远程分支

  1. 在当前的master分支(或其他分支)拉取最新版本的代码

  2. 从当前分支复制一个开发分支,develop git checkout -b develop

  3. 把新建的分支push到远端,origin为远端别名 git push origin develop

  4. 关联 git branch --set-upstream-to=origin/master

  5. 拉取验证 git pull

OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

取消代理

git config --global --unset http.proxy

git config --global --unset https.proxy

http模式下记住和清除git账号密码

git config --global credential.helper store 输入后,再次输入账号密码

git config --system --unset credential.helper git清除账号密码

删除公钥 .ssh

移除别名

git remote rm origin

清除缓存

git credential-manager uninstall

git证书问题 git config --global http.ssl

git config --global http.sslVerify false