How to pull request on github


My notes on how to make a Pull request’s on github

Github fork pull-request:

This type of pull-request is more common when you contribute to repos that you are not already a collaborator of.

  1. Find repo you want to make a PR for
  2. Click the fork button
  3. Pick where you want to fork. Your personal account or org account etc
  4. Edit your fork
  5. Hit the New Pull Request button on the front of the fork
  6. Go through the PR wizard

Github branch pull-request

This type of pull-request is more common when you are the author or a team-member of the repo in question.

  1. Clone the repo you want to make a PR for Github desktop or Terminal)
  2. Make your file changes that you want to include in the PR
  3. Create a new branch Github desktop or Terminal) name it add-readme or alike
  4. Commit your file changes. Add readme
  5. Publish and push commit to origin Github desktop or Terminal)
  6. In the repo main page on github you will now find a button that says make pull-request
  7. Click Make PR, Click Squash PR (if you want simple GIT history). Optionally add a reviewer and your ✅

PRO-TIP: