Friday, April 9, 2010

File versioning the Git way

One of my favorite features of Git is the ability to create local repositories. Subversion can be a hassle for many multiple projects I go through. The repositories have to live on one central server which stays in constant sync with development. If you've ever tried to merge changes in Subversion with conflict code in repository no need to raise your hand. I can tell by the gray hairs who you are.

Additionally this will work with any file type and will not induce additional load on file server. All the versioning changes will be stored locally and if the need arises, can be pushed out to a central hosting server.

Getting started with Git on Mac/Linux is very easy:
Getting started with Git on Windows is not too bad:

The basics are:
1) Make directory (mkdir project1)
2) Initialize with git to get started (git init)
3) Add your files in there (git add .)
4) Commit changes (git commit -a -m 'My first git project'). Do this as many times as you want after changes.

There you go, code versioning locally without subversion. Home page for Git and a great source of documentation can be found here: