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

    推荐阅读