Skip to content

Latest commit

 

History

History
137 lines (79 loc) · 5.88 KB

How-to-Contribute.md

File metadata and controls

137 lines (79 loc) · 5.88 KB

How to contribute

Follow the below step by step process for contributing this repo.

Quicklinks

1.Fork this repo

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". Fork the repo image

2.Make clone of the repo

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👇

Clone the repo

3.Open this folder in your favourite code editor

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👇 VS code

4.Make a new branch

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
 

5.Make a new program or make changes to the existing code

Now create a new program or you can also make changes in existing code.

6.Commit the code

Run the following command to commit the code↗️

 git commit -m "Commit Message"
 

7.Push the changes

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🚫

8.Make a pull request

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👇

Repo_Menu

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👇

Pull request

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.

Points to remember

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

Getting Help

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.