How to do a GitHub pull request

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

    I've started a project to help people making their first GitHub pull request. You can do the hands-on tutorial to make your first PR here

    The workflow is simple as

    • Fork the repo in github
    • Get clone url by clicking on clone repo button
    • Go to terminal and run git clone
    • Make a branch for changes you're makeing git checkout -b branch-name
    • Make necessary changes
    • Commit your changes git commit
    • Push your changes to your fork on GitHub git push origin branch-name
    • Go to your fork on GitHub to see a Compare and pull request button
    • Click on it and give necessary details

提交回复
热议问题