Github: Pull Request- The easy way

Fatima Yousif
3 min readApr 4, 2021

Are you a Github user and ever wondered you can work along with a team or an organization together and contribute even a little to the code, but what is that helps us do that thing ? a Pull Request (PR)

FORKING

Before doing a PR, why don't we go for forking and then working on the code modification on it?

Well, by forking you just copy a repository to your local instance of the account and the real owner of the repository is left unaffected with the code you’re updating.

Fork (to clone)

So, PR is like a security key too; as you accept someone’s specific PR as a contribution or you ignore a random and yet useless change to the repo, because the owner has rights to let down a PR before any other programmer changes something, thus it’s the ownership for you by doing a PR.

Pull Request. But How?

Note: Github GUI guide ahead!

  1. Fork the repository, you want to contribute to.

2. Edit the provided “to-be edited” file.

Edit by clicking the “pencil” icon

3. Commit changes- save the changes/edits.

hit the green!

4. Making a PR

In the Pull request tab click “new pull request” button as:

New pull request

5. Create a Pull Request

create pull request

6. All your commits/changes/edits can now be seen.

7. Wait for the owner to accept and confirm the merge for you to contribute!

Hacktoberfest- practice your PRs

Hacktoberfest’20 swags

Participate in hacktoberfest next year and make 4 PRs the way I explained you earlier and win amazing swags every year better than the previous.

I participated in Hacktoberfest 2020 by creating this simple repo, and got 20 PRs and 9 total contributors from across the world. YOU CAN TOO!

Mark your ways to being a “contributor”.

--

--