Your Practical Guide to making Open Source Contributions!
Pull requests are the way we contribute to group projects or open source projects
- Open https://github.com/fykaa/Open-Source-Essentials in a new tab
- Make a change! Add your name in the above repository's
Contributors.md
file in order to make your first pull
- Right click to Open Git Bash Here
- Create a Git repository on GitHub
- Run following command on gitbash
git init
- Fork the repository you created on github
- Clone your forked repository of the project
git clone https://github.com/<your_username>/repository_name.git
- Navigate to the project directory
- Add a reference(remote) to the original repository
git remote add upstream https://github.com/repository_owner/repository_name.git
- Check the remotes for this repository
git remote -v
- Always take a pull from the upstream repository to your main branch to keep it updated as per the main project repository
git pull upstream main
- Create a new branch (prefer a branch name that relates to your assigned issue
git checkout -b <YOUR_BRANCH_NAME>
- Perform your desired changes to the code base
git status
git diff
git add . <\files_that_you_made_changes>
git commit -m "relavant message"
git push -u origin <your_branch_name>
Congratulations🎉, you have made a PR to the repository. Wait for your submission to be accepted and your PR to be merged by a maintainer. Show some ❤️ by starring this repository and do follow me for more updates✨