https://git-scm.com/book/zh/v1/Git-基础-远程仓库的使用
git remote
$ git remote
origin
git remote -v
$ git remote -v origin git://github.com/factsbenchmarks/taobao-jingdong.git (fetch) origin git://github.com/factsbenchmarks/taobao-jingdong.git (push)
$ git remote -v origin git://github.com/factsbenchmarks/taobao-jingdong.git (fetch) origin git://github.com/factsbenchmarks/taobao-jingdong.git (push) pb git://github.com/factsbenchmarks/test.git (fetch) pb git://github.com/factsbenchmarks/test.git (push)
git remote add xx git://url
$ git remote add pb git://github.com/factsbenchmarks/test.git
git fetch xx
git push origin master
git remote show origin
$ git remote show origin * remote origin Fetch URL: git://github.com/factsbenchmarks/taobao-jingdong.git Push URL: git://github.com/factsbenchmarks/taobao-jingdong.git HEAD branch: master Remote branch: master tracked Local branch configured for 'git pull': master merges with remote master Local ref configured for 'git push': master pushes to master (up to date)
git remote rename pb paul
$ git remote rename pb paul zuo@DESKTOP-QN47U5R MINGW64 /d/test/taobao-jingdong (master) $ git remote -v origin git://github.com/factsbenchmarks/taobao-jingdong.git (fetch) origin git://github.com/factsbenchmarks/taobao-jingdong.git (push) paul git://github.com/factsbenchmarks/test.git (fetch) paul git://github.com/factsbenchmarks/test.git (push)
git remote rm paul
$ git remote rm paul zuo@DESKTOP-QN47U5R MINGW64 /d/test/taobao-jingdong (master) $ git remote -v origin git://github.com/factsbenchmarks/taobao-jingdong.git (fetch) origin git://github.com/factsbenchmarks/taobao-jingdong.git (push)