代码之家  ›  专栏  ›  技术社区  ›  Juanjo Conti

我有Git克隆,现在呢?

  •  1
  • Juanjo Conti  · 技术社区  · 15 年前

    我刚刚克隆了一个存储库,做了一些更改,现在我想将我的补丁发送给作者。我该怎么办?

    我匿名从Github克隆。

    git push origin
    

    ?

    5 回复  |  直到 15 年前
        1
  •  0
  •   kervin    15 年前

    你需要 犯罪 到您的本地存储库,然后您可以 .

    但这可能不起作用,因为您没有登录。

        2
  •  4
  •   Boldewyn    15 年前

    如果您也有Github帐户,请阅读: http://github.com/guides/pull-requests

    elif如果上游作者可以通过ssh、http或git协议访问您的存储库,请编写一封电子邮件,他可以从中提取: git pull http://example.com/cool_stuff.git

    否则你应该这么做 git format-patch -o patchdir && tar c patchdir.tar patchdir 并将补丁发送给上游作者。

        3
  •  1
  •   hellvinz    15 年前
        4
  •  1
  •   ZeissS    15 年前

    最低限度的补贴? git diff > file.patch 和邮件;

        5
  •  0
  •   Dmitriy Likhten    15 年前

    您需要使用 git commit

    在Git中创建一个分叉(参见Hellvinz的答案)。把你的本地承诺推到你的个人分叉上。然后向作者发送请求。

    推荐文章