Git & Github

Git and Github


What is Git.

Git is an Open Source Version Control System for management and development of projects. It was developed by Linus Tovalds and initially released on 7th April, 2005. Git is written in C, Python, Perl, Tcl and Shell Script.

It is a Distributed platform, that is, repositories can be accessed remotely. This provide an ecosystem where multiple developers can manage or develop a single project.

Why Git?

Using Git is pretty wonderful, infact, there are many reasons for developers to use Git. 

1.Git is almost cross platform, working on most platforms such as Windows, Linux and Mac OS.

2. It is Open Source under the GNU Public Licence.

3. It provide an ecosystem for multiple developers to collaborate on a single project, thereby providing a better project.

4. It helps developers in getting contribution from the public, i.e. Version Control System provide a chance for others to fork the project repository and work on it.

5. Helps in working on different versions of the same project. Developers can branch the project and work on multiple versions as possible as they can, later on they can merge it to a single project.

6. Larger companies such as Google, Microsoft and Facebook uses Git.


How to Install Git.

Git can be installed on your computer in two ways:

1. By downloading the software from the Git official website and download the version complatible with your platform.

After installing Git, you can run "git --version" in command line (Windows) or terminal (Linux or Mac OS). If you don't see any versions of Git, you can rerun the Setup or download a compatible version.

2. By installing commander, a command line tool which comes with Git preinstalled.






Github

Github is an online hosting service for Git Repositories. It provide free repository hosting services for public projects and paid repositories hosting service for individual projects.


Github was founded on 8th February, 2008 under Microsoft by Tom Preston-Werner, Chris Wanstrath, P. J. Hyett and Scott Chacon. Git is written in C, JavaScript, Ruby and Go.


Why use Github?


1. Git provide an ecosystem for sharing bunch of resources, ideas and knowledge.

2. Provide free sharing of code. Used my most tutors to share files to learners and others.

3. Helps developers to collaborate on a project.


Git commands.

1. Git add - add current directory to staging area and track changes.

2. Git branch - branches the project to an isolated environment.

3. Git commit - save tracked changes and act as a checkpoint.

4. Git clone - clone a remote repository.

5. Git checkout - switch from one branch to another.

6. Git push - upload/update a repository to a remote server.

7. Git pull - update a local repo from a remote repository.

8. Git merge - merge one or more branches as one.

9. Git revert - revert to previous commit.

10. Git status - check for tracked and untracked changes.


1 Comments

Previous Post Next Post