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"
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"