How to make a pull request on GitHub

Fork the project on GitHub

Clone your fork

git clone https://github.com/<yourGithubUsername>/<projectname>.git

Go to the project directory

cd <projectname>

Add upstream to original

git remote add upstream https://github.com/<originalOwner>/<projectname>.git

Create a branch

git branch <branchname>

Change to the created branch

git checkout <branchname>

Do your changes

Add your changes

git add .

Commit your changes

git commit -m “<comment>”

Push your changes

git push -–set-upstream origin <branchname>

Initiate the pull request

On Github go to your branch
Click the “Compare & review” button
Add a title and a comment
Click the “Create pull request” button

Posted in Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*