Follow the below step by step process for contributing this repo.
- Forking Repo
- Clone Repo
- Open this folder in your favourite code editor
- Make a new branch
- Make a new program or make changes of existing code
- Commit the code
- Push the changes
- Make a pull request
- Points to remember
- Getting Help
Go to the main page of this repo and there you will find a fork button at its upper right corner. Click
on that fork button then you will navigate to a new page where you will find the options like below image👇.Just click on "Create fork".
After navigating to your github account at right side of this repo you will find a drop down button "Code" click on that button then there you will find a clone link,just copy that link.Then open your terminal and navigate to the folder where you want to keep this repo and then run the following command:
git clone Your_CopiedLInk
See the below image👇
I use Visual Studio Code and you can use any code editor of your choice.
If you use VS Code after applying all the above steps when you open your folder in VS Code then you will see like this👇
As you can see in the above picture of vs code the default branch selected for the repo is "main"(At button left corner). Use the following command to create a new branch
git branch Branch_Name
Now set the HEAD to new branch by runnig following command:
git checkout Newly_Created_Branch_Name
Now create a new program or you can also make changes in existing code.
Run the following command to commit the code
git commit -m "Commit Message"
Run the following command to push the code to your newly created branch in the foked repo✨
git push origin "Newly_Created_Branch_Name"
Note: Don't push code directly to the main branch. Never do it🚫
After pushing the new code(new file) or code changes(changes in existing file) to your new branch Open your browser and go to your forked repo in your github account.There you will see a section "Pull request" like below image👇
Click on that and then you will see an option "New pull request" at right side. And when you will click on that "New pull request" button you will be then redirected to this main repo pull request section and you will see the page like below👇
Here at the place of 1 your name will appear and at place 2 your branch name will appear.Now just click on "create pull reqeust" button. Basically place 1 refers to the repository in your github account which you have forked and place 2 refers to the branch in which you made changes(Creating new file or making changes in existing file)
🚀In short, Here you are requesting to merge the changes which you have made in your branch to the main branch of the base repository.🚀
You can also watch this video to understand all the above steps as well as you can also get overall idea about git and Github.So I highly recommend you to go through this video and try to understand the basic concepts of git.
i. Each time follow the same step to make a pull request(Step 4 to step 8)
ii. Make a separate branch each time for each program.Because you can't create multiple pull request in one branch.If you want to know more about it then click here
If you want any kind of help then go to our Discussion page and post your question there with full description.And we will try our level best to resolve your problem as soon as possible.