Image for post
Image for post

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

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

Cheers:)

Written by

SDE | Ex-FrontBench | Blogger. I write about Startup, Self-Improvement, JavaScript, React and Node.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store