- Go to the repo/folder on GitHub you want to contribute to.
- Click the Fork button.
- This creates your own copy of the repository on github.
Now you have your own version of the project on github.
Copy the repository to your computer(local):
git clone https://github.com/your-username/repository-name.git
Go inside the folder:
cd repository-name
create a different branch for the sake of not messing up main branch
git checkout -b my-new-feature
Now you are working safely in your own branch.
Edit the files you want to change.
Save the files.
Stage your changes:
git add .
Commit your changes:
git commit -m "a meaningful message"
push it offfff
git push origin my-new-feature
- Go to your fork on GitHub.
- You will see a button: Compare & pull request.
- Click it.
- Add a clear title and description.
- Click Create Pull Request.
Your Pull Request is now submitted.