View on GitHub

git-notes

A brief introduction and tutorial on Git, GitHub, and Terminal

Pull Request

Pull requests are a mechanism for a developer to notify team members that they have completed a feature. This lets everybody involved in the project know that they need to review the code and merge it into the master branch. Pull requests are also a dedicated forum for discussing the proposed feature. This gives other developers an opportunity to review the changes before they become a part of the main codebase. If there are any problems with the changes, teammates can post feedback in the pull request and even tweak the feature by pushing follow-up commits. All of this activity is tracked directly inside of the 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.

  3. To the right of the Branch menu, click New pull request.

  4. 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.
  5. Type a title and description for your pull request.

  6. 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.