git中配置全局信息

0》右键 git bash here

1》ssh-keygen -t rsa -C 邮箱 多次回车,生成公私密匙
2》git config --global user.name "账号"
3》git config --global user.email "邮箱"
4》把生成的公匙添加到gitlab中的settings下的sshkey中。

注意:git config --global http.sslVerify false,如果执行失败报如下错误,请先执行:set GIT_SSL_NO_VERIFY=true git clone

原文地址:https://www.cnblogs.com/mxggx/p/14940067.html