How to do a GitHub pull request

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

    I wrote a bash program that does all the work of setting up a PR branch for you. It performs forking if needed, syncing with the upstream, setting up upstream remote, etc. and you just need to commit your modifications, push and submit a PR.

    Here is how you run it:

    github-make-pr-branch ssh your-github-username orig_repo_user orig_repo_name new-feature
    

    You will find the program here and its repository also includes a step-by-step guide to performing the same process manually if you'd like to understand how it works, and also extra information on how to keep your feature branch up-to-date with the upstream master and other useful tidbits.

    0 讨论(0)
  • 2020-11-22 04:09

    The Simplest GitHub Pull Request is from the web interface without using git.

    1. Register a GitHub account, login then go to the page in the repository you want to change.
    2. Click the pencil icon,

      search for text near the location, make any edits you want then preview them to confirm. Give the proposed change a description up to 50 characters and optionally an extended description then click the Propose file Change button.

    3. If you're reading this you won't have write access to the repository (project folders) so GitHub will create a copy of the repository (actually a branch) in your account. Click the Create pull request button.

    4. Give the Pull Request a description and add any comments then click Create pull request button.
    0 讨论(0)
提交回复
热议问题