Short and comprehensive guide to creating a Pull Request

Short and comprehensive guide to creating a Pull Request

This is a handy step-by-step guide you need to follow to create your Pull Request (PR). In this guide, we'll consider using Git and Github.

1) Fork the Repository (Repo)

  1. Find the project you want to contribute to and FORK it on GitHub.

  2. To create a fork, you get a Fork button, click that

2) Clone the Repo to your clone machine

  1. It is self-explanatory, use git clone to clone your forked repo to your local machine.

3) Create a new branch

  1. Quickly create a new branch in your clone, here are two ways to create a new branch:

    • git branch <branch_name>

    • git checkout -b <branch_name>

Both of them work just fine.

4) Make changes and Push

  1. Make your changes, and commit them.

  2. Push them to your forked repo on GitHub.

5) Create a PR

  1. On your forked repo, click on "Pull Request" → "New Request".

  2. Explain your changes in detail and submit.

If you need any help from me, feel free to reach out here on my Twitter account.