码云(gitee)配置公钥 + 创建仓库
<p>1.因为在《github建立仓库》一章已经生成公钥,所以这里就不再具体截图(至介绍一下步骤)</p><p> <strong>ssh-keygen -t rsa -C "yourEmail" </strong></p>
<p><strong> 三次回车 </strong></p>
<p><strong> </strong>到此,已生成ssh key(在<strong>C:\Users\</strong>Yating<strong>\.ssh\id_rsa.pub</strong>)</p>
<p>2.注册并登录码云,点击头像-》设置-》SSH公钥(如图所示)</p>
<p><img src="https://img2018.cnblogs.com/common/1760011/201912/1760011-20191219112430483-2047262228.jpg" alt="">3.粘贴sshkey</p>
<p><img src="https://img2018.cnblogs.com/common/1760011/201912/1760011-20191219112740174-899682459.jpg" alt=""></p>
<p>4.测试-</p>
<p><strong>ssh -T git@gitee.com</strong></p>
<p>接下来会问是否将主机号添加进来<strong> (yes)</strong></p>
<p>会提示:<strong>Hi XXX You have successfully......................</strong></p>
<p>至此,已成功~</p>
<p>5.创建仓库</p>
<p><img src="https://img2018.cnblogs.com/common/1760011/201912/1760011-20191219113808410-1568846467.jpg" alt="">6.doc命令行输入</p>
<pre class="dark"><strong>git config --global user.name "你的名字"
git config --global user.email "你的邮箱"</strong></pre>
<p> </p>
<p><img src="https://img2018.cnblogs.com/common/1760011/201912/1760011-20191219114338885-1513830964.jpg" alt="">7.如果已有仓库就执行已有仓库中的后面两行代码</p>
<p>运行成功,就可以看到码云中提交的代码</p><br><br>
来源:https://www.cnblogs.com/yaya-003/p/12066727.html
頁:
[1]