标签:turn title span setting 粘贴 set 执行 name email
换用ssh克隆
分成多次提交,每次只提交一小部分代码
ssh-keygen -t rsa -C "YourEmail@example.com"
...
回车即可,生成
Your identification has been saved in /Users/xxx/.ssh/id_rsa. Your public key has been saved in /Users/xxx/.ssh/id_rsa.pub.
1. 登陆GitLab,打开"Settings"->"SSH Keys"页面:
2. 在"Add SSH Key"处,填上任意Title,在Key文本框里粘贴id_rsa.pub文件的内容
3. 点"Add Key",即可看到你添加的key
1. 删除原服务端,切换到项目目录下
git remote remove origin
2. 添加新目标服务端地址
git remote rename origin 自己仓库的ssh地址(ssh://git@git.xxx:20/xxxx/xxxx.git)
标签:turn title span setting 粘贴 set 执行 name email
原文地址:https://www.cnblogs.com/will-xz/p/14660355.html