More about Alcides Fonseca
Go Back

Me and git I

Written by Alcides Fonseca at 2008/03/23

VCS are a must for my projects. I need to be able to get old versions or have a place where I can easily sync the project with some friends. Until now I have been using subversion that fits my needs, but everyone is saying that “git”: is so cool and everyone is migrating their repositories to git. I’m not the guy to follow the flock, so I took the change in helping Nuno on his project to try out git. I simply did one countdown snippet to add to a form, you may use it anywhere you want, just keep in mind it depends on Prototype.

While SVN comes with OS X, git doesn’t, so I recomend using this installer to get git going on. Works on both Tiger and Leopard.

I later found out of a bundle to textmate (since I’m an avid user of SVNmate) here. I just couldn’t find it in the first place, because I use GetBundle bundle to manage them, and it wasn’t in the list (Mercurial and Bazaar are!) so I’d suggest Tim to submit it to the macromates repository.

There is also a nice interface to see the last changes called GitNub. Just remember to upgrade to RubyCocoa 0.13.0.

And now just use the magical workflow:

git clone *repository url*
*make your changes*
git add .
git commit -a -m "*alterações feitas*"
git push

The diference here is that you can commit to your own repository, and then after submit your changes to the main repository. This is great in the point that it let’s you have your own repository offline (that would have been useful yesterday when ideias3 was offline). It also encourages people to clone the repository and take the project in diferent directions and then merge it all together. This is somehow possible in SVN using branching and merging, but it is so complicated I have never branched anything in my life!

However I am sticking to SVN for now. Why? First because I don’t want to worry about managing my own git server (I do have one server that I could use for this, but most of people won’t). I know there are some cool stuff out there like GitHub or Rep.or.cz or even Gitorious but I like to keep some of my stuff private. And Dreamhost has in their control panel, a very simple and sweet SVN manager. Second, my university workgroup runs different OSes. I am running MacOS X now (but I do use Windows a lot), one mate runs Windows and the other Ubuntu. So we need something that works fine in all those platforms, and I’ve heard git sucks in Windows. I haven’t really tested that out, but the major issue is lack of integration with the OS. We don’t really like to do everything on the command line. I know I’m weird, but what can you do about it? I love Tortoise-SVN (windows) and SCPlugin (Mac). There is some KDE cool integration and for Gnome, there is one buggy one, but we’re using RapidSVN for now. Oh, and Eclipse support too. Git doesn’t have none of this for now. And I’ll keep waiting. Then I will migrate to Git.