git往码云提交代码在新环境下首次使用的相关问题

1.添加公钥
输入下面git 命令生成公钥,默认路径(C:\Users\Administrator.ssh),复制粘贴到码云上即可(设置-安全设置-ssh公钥)

ssh-keygen -t rsa

2.首次push时按提示提交码云绑定的邮箱和昵称
代码如下:

 git config --global user.email "[email protected]"
 git config --global user.name "Your Name"

猜你喜欢

转载自blog.csdn.net/gegephp/article/details/84191039