GitHub:如何将打开的拉请求添加到本地回购? [英] GitHub: How to add open pull requests to local repo?

查看:89
本文介绍了GitHub:如何将打开的拉请求添加到本地回购?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的iOS Xcode项目中使用了 NSDate-Extensions 插件。主回购有一些错误,这似乎是在两个合并请求中解决的:



>

这些请求仍然是开放的,不被主回购商接受。我怎样才能以Git方式将这些添加到我的本地回购?如果我的本地回购得到更新,如果他们的Fork在以后更新,那就没问题了:

github.com/Ricardo1980/NSDate-Extensions\">https://github.com/Ricardo1980/NSDate-Extensions
  • https://github.com/exalted/NSDate-Extensions


  • 解决方案添加一个 .patch 到拉链网址的结尾 - 您可以下载并在补丁上应用补丁:

      curl https://github.com/erica/NSDate-Extensions/pull/6.patch | git am 


    I'm using the NSDate-Extensions plugin in my iOS Xcode project. The master repo has some errors which seems to be fixed in two Pull Requests:

    These requests are still open and not accepted to the master repo. How can I add these to my local repo in a Git-way? It would be fine, if my local repo gets update, if their Fork gets updated later:

    解决方案

    Add a .patch to the end of the pull url - you can download and apply the patch on your repo:

    curl https://github.com/erica/NSDate-Extensions/pull/6.patch | git am
    

    这篇关于GitHub:如何将打开的拉请求添加到本地回购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆