zoukankan      html  css  js  c++  java
  • 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>

    将用过的名字删除

  • 相关阅读:
    netcore跨域
    阿里云oss通过api上传图片后不能预览只能下载的解决方法
    阿里云oss对图片的处理:缩略、剪裁、锐化等
    通过字节值判断图片格式
    Linux 常见命令 用户管理命令(二)
    nohup命令
    selinux基础介绍
    LINUX中的limits.conf配置文件
    【ASP.NET】使用Jquery缓存数据
    .net 4.0以下版本实现web socket服务
  • 原文地址:https://www.cnblogs.com/Accoral/p/3136945.html
Copyright © 2011-2022 走看看