January 18, 2017

Git and GitHub

In this article I will discuss about Git and GitHub.First question comes in everybody's mind, what is Git and what is GitHub. Both are same or different?GIT:Below is the definition from GIT official site. (https://git-scm.com/)Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiencyGit is a distributed version control system.There are two types of version control systems out there. “centralized” and “distributed”.Centralized:A single place everyone can check in and check out. Example :CVS, Subversion, and Perforce

Distributed:Every developer/user has their own repo. Everyone can push changes into a common repo. Example : Git, Mercurial, Bazaar or DarcsThe below diagram show the core difference.

Online project hosting using Git. It Includes source-code browser, in-line editing, wikis and ticketing. Free for public open-source code.GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.GitHub is a web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features.Below are some of the advantages of GitHub:

Version control your projects

Push your projects to GitHub and let the world know how nice and useful code you write

Explore other’s projects on GitHub, get inspired code more, or contribute to their project

Collaborate with others, by letting other people contribute to your projects or you contributing to other’s projects