
Making your first Contribution on Github
Many of us have confusion understanding the difference between git and github.So, first of all let me clear the difference between Git and Github. Github is website to host the Git repository whereas Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Read more about git here.
So now move to implementation part.
Step 1 : Install git.You can download git here https://git-scm.com/downloads for your system.
Step 2 : After successful installation. Set PATH for git in system environment variable.
To add into PATH:
- Right-Click on My Computer
- Click on Advanced System Settings
- Click on Environment Variables
- Then, under System Variables, look for the path variable and click edit
- Add the path to git’s bin and cmd at the end of the string like this:
;C:\Program Files\Git\bin\git.exe;C:\Program Files\Git\cmd
Step 3 : Create an account on Github. and Initialize new Repository.

Step 4 : Locate your project and open git bash.I
In my case location is C:\Users\deepak\Desktop\Code

Step 4 : Write these codes
git initgit statusgit add MyFirstRepo/git commit -m "intial code"git remote add origin https://github.com/dipakkr/First-Repo.git

git push origin master

Congrats, you have successfully pushed your code on github.Check your github Repo.
Cheers:)