How to create a Pull Request on GitHub


If you want to contribute to a project on GitHub, the way to do it is by creating a pull request. I broke it down into these easy-to-follow steps:

  1. Fork the project: You start off by going to the project you want to contribute to on GitHub and create a fork. This will create a copy of the project in your repositoriesPull Request GitHub Fork
  2. Clone the Fork: Click on Clone or download in your forked repository, copy the link, create a folder on your local machine and run git clone

Pull Request GitHub Clone

  1. (Optional:) Create a new branch: If you want your changes to be in an own branch, run git checkout -B branchName
  2. Make local changes: Make the changes in your cloned repository.
  3. Commit the changes to your fork: Change into your repository and run

git add .
git commit -a -m "Describe your fixes"
git push
(Optional for new branches:) git push --set-upstream origin branchName

  1. Create the pull request on GitHub: Go to your fork on GitHub and click on Pull-Request and fill out the description. You’re done.

Hi, I'm Christoph Michel 👋

I'm a , , and .

Currently, I mostly work in software security and do on an independent contractor basis.

I strive for efficiency and therefore track many aspects of my life.