[git] git修改远程仓库地址

方法有三:

1.直接命令修改

git remote set-url origin [url]
例如:git remote set-url origin https://ddns.togit.cc:7777/rffanlab/tensorflow_get_started_doc_cn.git

2.先删后添加

git remote rm origin
git remote add origin [url]

3.修改config文件
打开.git目录,修改config文件里面的url替换就OK了。

未经允许不得转载:RffanLAB|Rffan实验室 » [git] git修改远程仓库地址

赞 (2) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏