Archive for the ‘git’ Category

Git — The fast version control system

Donnerstag, Februar 5th, 2009

Today at work we gave Git a first shot as the new version control system for a rather big PHP project.

The decision was mainly based on the (documented and hoped for) ease of use, the abilities, and excellent reputation. If its good enough for Linus and the Linux Kernel, it can’t really be bad for us. To be honest, a certain degree of curiousness was involved, too.

First steps contained taking the current live and development version as a basis for the new repository, with the plan to branch as often as applicable to be able to maintain a „live“ branch by simply merging features from the single branches into it when required.

For the first day this went quite well although the stable built of the Eclipse plug-in (update site) did not work at all leaving us using the „integration“ release for now.

The process is really as easy as exemplarily shown in the documentation

$ cd (project-directory)
$ git init
$ (add som files)
$ git add .
$ git commit -m 'Initial commit'

At the beginning I always forgot to add the files and wondered why the commit would not happen to contain any difference — but that should only be a question of getting used to it. Looks fine, for now.