1. Home
  2. Docs
  3. Engineering
  4. Create Pull Request in Github

Create Pull Request in Github

Create a pull request to propose and collaborate on changes to a repository. These changes are proposed in a branch, which ensures that the default branch only contains finished and approved work.

Creating a pull request

  1. On GitHub, navigate to the main page of the repository.
  2. In the “Branch” menu, choose the branch that contains your commits.
Branch dropdown menu
  1. Above the list of files, click Pull request.
"Pull request" link above list of files
  1. Use the base branch dropdown menu to select the branch you’d like to merge your changes into, then use the compare branch drop-down menu to choose the topic branch you made your changes in.
Drop-down menus for choosing the base and compare branches
  1. Type a title and description for your pull request.
Pull request title and description fields
  1. To create a pull request that is ready for review, click Create Pull Request. To create a draft pull request, use the drop-down and select Create Draft Pull Request, then click Draft Pull Request. For more information about draft pull requests
Create pull request button

If You Only Have One Line To commit You Can follow This Step

  1. Open specific branch on repository
  1. Navigate to the file that you want to commit (just click the folder)
  1. Open the file and click edit (in this time github will automatically fork the branch so it’s not change the main branch)
  1. Edit the code and then click propose changes
  1. After propose changes clicked, pull request will automatically come out and then click pull request
  1. Submit title and comment for your pull request and then click pull request, after this pull request is successfully made.
Was this article helpful to you? Yes No

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *