DEV Community

Cover image for How to Submit the First Formal PR for Beginners?
elysianx
elysianx

Posted on

How to Submit the First Formal PR for Beginners?

After spending some time contributing to open source,I’ve realized the biggest hurdle for beginners isn’t finding a sustainable project-it’s submitting your first PR. If you’re also a beginner aiming to create your first PR, keep reading.


Step 1:Prepare

If you don't have git on your machine, install it.

Step 2:Fork this repository

Fork this repository by clicking on the fork button on the top of this page.
This will create a copy of this repository in your account.

Step 3:Clone the repository

clone the repository

Now clone the forked repository to your machine. Go to your GitHub account, open the forked repository, click on the code button, then on SSH tab and then click the copy url to clipboard icon.

Open a terminal and run the following git command:

git clone "url you just copied"
Enter fullscreen mode Exit fullscreen mode

Step 4:Find a good-first-issue

Now search for an issue you like

Communicate with the maintainer about what you should do! Don't worry you can't do it well. You will be assigned, then work.

Step 5:Create a branch

Change to the repository directory on your computer

cd my-first-contributions
Enter fullscreen mode Exit fullscreen mode

Make necessary changes and commit those changes

Open Contributors.md file in a text editor and issue,add your name to it.Save your file.
git status

If you go to the project directory and execute the command git status, you'll see there are changes.

Add those changes to the branch you just created using the git add command:

git add Contributors.md
Enter fullscreen mode Exit fullscreen mode

Now commit those changes using the git commit command:

git commit -m "Add your-name to Contributors list"
Enter fullscreen mode Exit fullscreen mode

replacing your-name with your name.

Push changes to GitHub

Push your changes using the command git push:

git push -u origin your-branch-name
Enter fullscreen mode Exit fullscreen mode

replacing your-branch-name with the name of the branch you created earlier.


Communicate with the maintainer about what to do. Don't worry if it's not perfect — they'll guide you. Get assigned, then get to work.

Top comments (0)