How to do a GitHub pull request

前端 未结 8 2092
一个人的身影
一个人的身影 2020-11-22 03:12

How do I create and/or send a pull request to another repository hosted on GitHub?

8条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 03:45

    For those of us who have a github.com account, but only get a nasty error message when we type "git" into the command-line, here's how to do it all in your browser :)

    1. Same as Tim and Farhan wrote: Fork your own copy of the project:
    2. After a few seconds, you'll be redirected to your own forked copy of the project:
    3. Navigate to the file(s) you need to change and click "Edit this file" in the toolbar:
    4. After editing, write a few words describing the changes and then "Commit changes", just as well to the master branch (since this is only your own copy and not the "main" project).
    5. Repeat steps 3 and 4 for all files you need to edit, and then go back to the root of your copy of the project. There, click the green "Compare, review..." button:
    6. Finally, click "Create pull request" ..and then "Create pull request" again after you've double-checked your request's heading and description:

提交回复
热议问题