Adding to someone else’s pull request on a GitHub project that I do not own

后端 未结 3 577
孤城傲影
孤城傲影 2021-02-05 00:53

Is it possible for me to add commits to someone else’s pull request on a repository where I am not the owner?

e.g.

User A owns Project X.

User B

3条回答
  •  无人及你
    2021-02-05 01:10

    User C can add directly to User B's pull request if User B has given permission, or possibly if user C is a committer on User A's repo.

    https://help.github.com/en/articles/committing-changes-to-a-pull-request-branch-created-from-a-fork

    The github default permissions for users on a fork are copied from the original.

    If you do have permissions your command line to add would look like this:

    git push https://github.com/[userb]/[projectx].git [userc_localbranch]

提交回复
热议问题