There are some guidelines which everyone should follow while contributing to this opensource project. While working in large teams, it is necessary to follow these steps to avoid any conflicts in the code and continue a smooth flow of collaboration amongst the developers.
-
Go through the Issues to see if, what you want is already in discussion.
-
Open a new Issue if you do not find what you need. Describe the bug, feature request, problems, additions you might want or anything clearly in the Issue message.
-
Mention in the Issue that you want to work on it.
-
Wait for the approval from the Maintainers of this project before starting to work on it.
-
Create a pull request after making the changes and mention the Issue number that your pull request is related to.
-
Make the required changes if the reviewer asks for them.
-
That's it! Your pull request will be merged once everything seems okay.
NOTE - Put a ✅ in the language column of the program you have implemented before creating a PR.**
Watch this Video if you are new to GitHub - YouTube Link
First step is to fork this repository (rahulsain3000/Hackerrank_30daysOFcode) to your GitHub account. You can do this by clicking on the Fork button provided in the top right corner of the repo page.
Also, star and watch the repository to receive all the updates directly to your mail.
How to Fork a Repository? - YouTube Link
Clone the repository that you just forked into your account. Be careful to clone the forked repo (your-username/Hackerrank_30daysOFcode) and not the main repo (rahulsain3000/Hackerrank_30daysOFcode) as making direct changes to the main repo will result in conflict of code and lack of co-ordination as we proceed further.
The forked repository will have your username in the top left corner and the clone link will also contain your username (https://github.com/your-username/Hackerrank_30daysOFcode.git).
How to Clone a forked repo? - YouTube Link
Now, you have the repository on your system and you are ready to make changes. But what if someone else changes the same thing that you just did?
To avoid any conflicts, you need to pull all the changes from the main repository.
So, after cloning the forked repository (your-username/skill-board) to your system, use the command git remote add upstream https://github.com/rahulsain3000/Hackerrank_30daysOFcode.git
to point to the main repository. You only need to do this once.
Now, after making any changes to your project on the system, follow these simple steps to push your work to the repository:
git add .
git commit -m "Commit Message"
git pull upstream master
This command checks for any conflicts with the main repo. Go through the conflicts and make changes, if required.
git push
How to set up a Remote Repo - YouTube Link
After pushing the changes to your forked repository (your-username/Hackerrank_30daysOFcode), all you have to do is create a new pull request from your account by simply clicking on the Pull Request button.
NOTE: If you are some commits behind of rahulsain3000:master then you need to first git pull upstream master from the system, push it to your forked repository and then create the Pull Request.
Give a detailed and useful explaination of what you did in the comments of pull requests and someone from the maintainers or team leads will review the code and accept the pull request or ask you to change some things before merging it.
How to Create a Pull Request? - YouTube Link