<aside> <img src="/icons/feed_blue.svg" alt="/icons/feed_blue.svg" width="40px" /> Contributing to Open Source

Step 1 - Fork the repository

Step 2 - Clone the repository

git clone "copied-url"

Step 3 - Create a Branch

cd go-to-direcory
git switch -c your-new-branch-name

Example:
git switch -c add-Vinit-feature

Step 4 - Make necessary changes and commit those changes. Add those changes to the branch that was created in the previous step

git add file-name

git commit -m "commit-comment"

Step 5 - Push the changes using the command git push

git push -u origin branch-name

Step 6 - Now submit the changes for review. Go to the repo inside your account, and click on Compare & pull request button and press Create pull request.

</aside>


Create a git staging area

git init

Now go to your working folder and check the status

git status

Add all the changes to git staging area

git add .

Commit

git commit -m "commit-name"
git branch -M master

add to master branch on GitHub

git remote add origin <https://github.com/repo-name>