OpenSource For You

Version control systems help programmer­s keep track of the code they write, and also help them code in collaborat­ion with others. They are very helpful in organising code based on different purposes, versions, in merging different pieces of code, and have

-

Most people are familiar with centralise­d version control systems such as Subversion, in which every action requires connectivi­ty to the (Subversion) server. If the central server fails, all collaborat­ors that depend on the server will be affected, and any data access using the central repository will stop. Distribute­d version control systems (DsCS) do not rely on a central repository server; rather, each user has a full copy of the repository. Whenever the main server fails, you can recover the server from the individual repository copies.

Git combines the best of the earlier DsCS used to maintain the Linux kernel. It is designed on the principles of speed, simplicity, scalabilit­y, integrity of data, nonlinear developmen­t and being fully distribute­d. Before learning Git, please forget everything you know about version control systems—because Git breaks all the traditiona­l practices and workflows about version control systems that you may be familiar with. Git is modelled like a rNIX filesystem rather than a version control system. Integrity of data is implied by its design. If some files are modified or corrupted, Git itself can identify it by default. Since understand­ing Git's workflow and internals helps a lot, this article walks you through basic Git terminolog­y and the initialisa­tion steps, then moves to a hands-on workflow, which illustrate­s how to use it while coding. $ wget http://git-core.googlecode.com/files/git-1.7.9.tar.gz $ tar -xzvvf git-1.7.9.tar.gz $ cd git-1.7.9 $ make install

On rbuntu, a simple sudo apt-get install git-core will do the needful.

Newspapers in English

Newspapers from India