代码之家  ›  专栏  ›  技术社区  ›  Neil G

将其他人的更改列表合并到我的客户端?

  •  0
  • Neil G  · 技术社区  · 9 年前

    我克隆此存储库: https://github.com/ipython/traitlets/tree/master/traitlets

    此拉取请求正在等待接受: https://github.com/ipython/traitlets/pull/70

    我如何将它合并到我的客户机中,这样我就不必等待它的接受了?


    ~/src: rm -rf traitlets/
    ~/src: git clone https://github.com/ipython/traitlets.git
    Cloning into 'traitlets'...
    cd taremote: Counting objects: 4005, done.
    ^Rceiving objects:  31% (1242/4005)
    remote: Total 4005 (delta 0), reused 0 (delta 0), pack-reused 4005
    Receiving objects: 100% (4005/4005), 717.15 KiB | 0 bytes/s, done.
    Resolving deltas: 100% (1951/1951), done.
    Checking connectivity... done.
    ~/src: cd traitlets/
    ~/src/traitlets: git remote add SylvainCorlay https://github.com/SylvainCorlay/traitlets.git
    
    2 回复  |  直到 9 年前
        1
  •  3
  •   ThiefMaster    9 年前

    SylvainCollay希望将5个提交合并到来自SylvaiyCollay:Descriptors的ipython:master中

    SylvainCorlay:Descriptors 指示GitHub用户和分叉的分支。

    所以你可以简单地 git remote add SylvainCorlay https://github.com/SylvainCorlay/traitlets.git 将用户的存储库添加为远程存储库(假设您已经拥有上游存储库的本地克隆)。然后用 git fetch SylvainCorlay 。然后你可以 git checkout SylvainCorlay/Descriptors 或在本地合并更改。

    如果您没有克隆它,只需克隆表单并 git checkout Descriptors .

        2
  •  1
  •   Buddy    9 年前

    只需在URL末尾添加“.diff”(或“.patch”),即可从PR获得差异:

    https://github.com/ipython/traitlets/pull/70.diff

    然后,您可以将其应用于回购。