How to do a GitHub pull request

前端 未结 8 1896
一个人的身影
一个人的身影 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

    In order to make a pull request you need to do the following steps:

    1. Fork a repository (to which you want to make a pull request). Just click the fork button the the repository page and you will have a separate github repository preceded with your github username.
    2. Clone the repository to your local machine. The Github software that you installed on your local machine can do this for you. Click the clone button beside the repository name.
    3. Make local changes/commits to the files
    4. sync the changes
    5. go to your github forked repository and click the "Compare & Review" green button besides the branch button. (The button has icon - no text)
    6. A new page will open showing your changes and then click the pull request link, that will send the request to the original owner of the repository you forked.

    It took me a while to figure this, hope this will help someone.

提交回复
热议问题