GitHub Pull Requests

MD
R
Markdown

I will quickly and briefly explain what is a PR and how to create one.

⌨️Scenario 1 - Branched out from the main company repo

You branched out from the #development or #master branch and commited or changed a file. You will share your proposed change through a PR. The idea behind the PR's is that you share your changes, get feedback and iterate on them until they’re perfect! ✨ Spoiler alert: If you are working alone or are the admin of the repo, you probably won't be creating PRs.

Overview

  1. created a branch
  2. created a file
  3. made a commit
  4. opened a pull request

Create a PR

  • Go to https://github.com/USERNAME/github-slideshow/pulls
  • Base is the #branch which you've branched out from
  • GitHub will then show you the diff between your branch and the remote you are aiming to PR to
  • Enter a title for the PR
  • Submit

Merge a PR

  • Just click merge and the branch will be merged against the one which was branched out from
  • Delete the branch

Edit PR

Just commit more changes and/or add comments

Created on 2/19/2019