Git|Git reset a remote repo url
【Git|Git reset a remote repo url】For instance, the repo is:
$ git remote -v
originhttp://aaa/XXX (fetch)
originhttp://aaa/XXX (push)
$ git rev-list --count master
46
But for some reason, the repo is moved to somewhere else.
git remote set-url origin http://bbb/XXX
Then try again:
$ git remote -v
originhttp://bbb/XXX(fetch)
originhttp://bbb/XXX(push)
$ git rev-list --count master
46
推荐阅读
- gitlab|gitlab 通过备份还原 admin/runner 500 Internal Server Error
- gitlab|Gitlab升级(12.2.1到14.6.4)
- 常用git命令总结
- 圆形菜单
- Git学习-笔记摘要
- [2018-02-22]|[2018-02-22] Git之远程仓库
- 二、Git|二、Git 基础操作
- git|git 的常规操作
- 03_ARMv8指令集介绍加载与存储指令
- 关联gitclub远程仓库