Git basics

What is Git?

Git is a distributed version control system created by Linus Trovalds in 2005 for Linux Kernell development. It is free software distributed under de GNU General Public License. Version control is the management of changes to documents, computer programs, web sites, and other collections of information. So, git was created for managing and developing new and big distributed software projects.

Every computer its a full repository with complete history and full version-tracking capabilities. Git also has strong support for non-linear, and distributed development, where barnching and merging is very easy. This system helps you to share your projects with other and invite new developers.

Why to use Git?

Git is a very powerful tool when you need to work with a group of people, it helps you to have your projects well organized, and save. There are three characteristics that every good version control system may have:

  • Identification
  • Reversibility
  • Comparability

The first, is that when you have a very big project, every developer is constantly making changes to the project. So, you want to identify who made an specific change. If that person inserted an error or a bug, is easier to solve the problem, because you can exactly know what addition, or deletion created the problem.

With Reversibility, you want to be able to go back to an specific version of your project. Maybe to fix a bug, or to solve a compatibility problem. Going back t the example of a developer adding a bug, if you use a system with reversibility, you can go back to an stable version,and the problem ends there.

Comparability, refers to the capability to compare changes. If two developers make a change in the same part of the project, what change should be added to the final project? Comparing the to versions one can decide the best option for the project.

How git works

Basic commands

Let's practice!

  • tutorials/git_basics.txt
  • Last modified: 2016/02/26 11:52
  • by amora