更换git远程仓库链接,在GitLab中重新配置SSH key 笔记
更换git远程仓库链接,在GitLab中重新配置SSH key
## 修改仓库地址
1、git指令修改
```git
git remote set-url origin [url]
```
或 先删再加
```git
git remote rm origin
git remote add origin [url]
```
2、直接修改 git仓库中的 .git 文件中的 config 文件
## 在新的仓库中 配置SSH key (使用SSH时需要)
简书教程 [GitLab中配置SSH key](https://www.jianshu.com/p/d22ecac5b90b)
把本机电脑中的SSH_KEY加到GitLab的`Setting`-`SSH Keys`配置中

上一篇:乒乓球
下一篇:雨中花令·记初见十三年
本文链接: http://www.nanshanqiao.com/zz_article/129.html