-
Make sure to fork the repository, so it's available to your GitHub account, for further contributions as well as it state your contributions in it.
-
Clone the repository from your account to local PC, so its available to you locally. Also, you can make changes in it.
git clone https://github.com/<your-username>/<repo-name>
-
Now, set the
upstream
so it make a "path of contribution" from your account's repo. (repository) to original repository.git remote add upstream https://github.com/<org-name>/<repo-name>.git
-
After done with the changes in code, get ready to contribute, Excited ? 🤩
-
Make your own branch by using following command:
git checkout -b <branch-name>
-
Now, you've to add the changes in that branch, you created just above.
git add .
-
Lets commit the changes, & earn "green square of the day".
git commit -m "<message>"
-
Now, just push the changes from your repo. to original repository.
git push origin <branch-name>
-
Once you've committed and pushed all of your changes to GitHub, go to the page for your fork on GitHub, select your development branch, and click the pull request button. If you need to make any adjustments to your pull request, just push the updates to GitHub. Your pull request will automatically track the changes in your development branch and update it.