Create a pull request to propose and collaborate on changes to a repository. These changes are proposed in a branch, which ensures that the master branch is kept clean and tidy.

Before you can open a pull request, you must create a branch and then add commits to the branch. Pull requests can only be opened if there are differences between your branch and the upstream branch.

  1. On your GitHub Enterprise instance, navigate to the repository from which you'd like to propose changes.
  2. Branch dropdown menuIn the "Branch" menu, choose the branch that contains your commits.
  3. Pull Request buttonTo the left of the "Branch" menu, click the green Compare and Review button.
  4. Edit button for compare pageThe Compare page will automatically select the base and compare branches; to change these, click Edit.
  5. Create pull request buttonOn the Compare page, click Create pull request.
  6. Pull Request description pageType a title and description for your pull request.
  7. Send Pull Request buttonClick Create pull request.

After your pull request has been reviewed, it can be merged into the repository.