git如何更改连接的远程仓库地址(两种修改远程地址方法)
一、git如何更改连接的远程仓库地址:
方法1:修改远程仓库地址
1 | git remote set -url origin URL |
更换远程仓库地址,URL为新地址。
方法2:先删除远程仓库地址,然后再添加
1 | git remote rm origin |
删除现有远程仓库
1 | git remote add origin url |
添加新远程仓库
二、查看远程仓库的地址
1 | git remote - v |
智能机器人
除注明外的文章,均为来源:老汤博客,转载请保留本文地址!
原文地址:https://tangjiusheng.cn/git/6893.html
原文地址:https://tangjiusheng.cn/git/6893.html