DEV Community

Cover image for Git vs. GitHub: What's the difference?
 Shivangi Sharma
Shivangi Sharma

Posted on • Updated on

Git vs. GitHub: What's the difference?

Git or GitHub.

Are they the same/equal thing? If not, are they connected/related. The veracity is that Git and GitHub are connected far more closely than you think they're, but with some key differences setting them apart.

What's the difference between Git and GitHub? Well to know that first we will take a deep-examine at each one. But before we do that you need to know the concept of version control.

So now what is Version control?

Version control is like a correction tape for your program. It's work is to save program for your project. It tracks and logs the changes you make to your file sets over time, it gives you the power to review and even restore your earlier versions of your work. If you notice that your text is misaligned so rather than crawling back through every line of your code, you'll use the version control to reload earlier version of your code, until you find it satisfactory or correct.

Now let's flow directly to Git.

What is Git?

It was first developed back in 2005. Git is immensely popular and high-quality version of control system. Git is installed on your local system and keeps all the record of your ongoing program versions. you do no need any internet access to use it except if you want to download it. Git is extremely easy to use and it is not paid, hence inexpensive. It also has a branching model which allow user to make their own independent local branches, so that you can try out new ideas but without making changes in your main branch and you can anytime merge, delete and recall them.

What is GitHub?

GitHub is Git repository hosting service. It is entirely cloud-based, totally distinct from git which only allows you to control your projects in your local server/computer. GitHub is like an online storage of git , in technical words the database of projects you are working on in your local server it is being saved on the cloud in GitHub. Which allows you and any authorized person by you to see the work or contribute in that project. Like Git, GitHub also has the branching system which makes it smooth to try different approach's and distinct the work of other person from you so that it does not create any heap. You can excess your work from anywhere in the world just with connectivity of internet.

Conclusion

To conclude Git is a version control system installed on your local system and it keep track of all your work and stores it on local device storage whereas GitHub is a solely cloud-based and a Git repository hosting service. You can push your work from local storage to cloud through internet and access the data from anywhere.

Top comments (0)