一、更换SSHKey
首先去以前GitLab上复制SSHKey,在新的GitLab粘贴上,其他配置不变

二、更改config url配置
1.打开终端 执行命令
cd 项目路径
cd .git
open .
2.找到config

3.修改url

- 之后提交代码测试,在上GitLab上看会出现你提交记录,这样就完成了修改
- 学习git建议看下 git教程
首先去以前GitLab上复制SSHKey,在新的GitLab粘贴上,其他配置不变
1.打开终端 执行命令
cd 项目路径
cd .git
open .
2.找到config
3.修改url
本文标题:GitLab更换服务器地址
本文链接:https://www.haomeiwen.com/subject/nhsizttx.html
网友评论