Git 如何合并其他 Remote 上面的更新

coral@c:~/uva/AlgoLib$ git remote add new https://github.com/xxx/AlgoLib.git
coral@c:~/uva/AlgoLib$ git fetch new
remote: Counting objects: 55, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 36 (delta 13), reused 34 (delta 11)
Unpacking objects: 100% (36/36), done.
From https://github.com/xxx/AlgoLib
 * [new branch]      master     -> new/master
coral@c:~/uva/AlgoLib$ git merge new/master
Updating 139d329..95393f0
Fast-forward
 .gitignore                                         |    2 +-
 .../BiconnectedComponents/BridgeBlockTree.cpp      |   36 ++++++++++++++++++++
 Graph/Connectivity/BiconnectedComponents/README.md |   25 ++++++++++++++
 Graph/Connectivity/StrongComponents/Kosaraju.cpp   |    4 +--
 Graph/Connectivity/StrongComponents/Tarjan.cpp     |    4 +--
 Graph/Connectivity/StrongComponents/t/test.cc      |    8 ++---
 Graph/Matching/Hungary/Hungary.cpp                 |    6 ++--
 NumberTheory/Matrix/Matrix.cpp                     |   28 +++++++--------
 NumberTheory/Matrix/README.md                      |    7 ++++
 String/SuffixArray/SuffixArraySimple.cpp           |   17 ++++++---
 10 files changed, 107 insertions(+), 30 deletions(-)
 create mode 100644 Graph/Connectivity/BiconnectedComponents/BridgeBlockTree.cpp
 create mode 100644 Graph/Connectivity/BiconnectedComponents/README.md
 create mode 100644 NumberTheory/Matrix/README.md
coral@c:~/uva/AlgoLib$ git push origin master
To https://github.com/xxx/AlgoLib.git
   139d329..95393f0  master -> master

 此时:

coral@c:~/uva/AlgoLib$ git remote
new
origin

可以用

git remote rm <name>

将用过的名字删除

posted on 2013-06-14 23:09  Ac_coral  阅读(506)  评论(0编辑  收藏  举报

导航