…and I’m bloody delighted.Â
The straw finally came when Nick forced my hand for a project we wanted to release through our work in INEX. I was pushing for Google Code but he had his heart set on GitHub. Now, in fairness, GitHub has some SVN bindings but after some research, I decided to dive right in.
Now, there’s both a steep learning curve but also a complete change of mindset required from centralised source code management (SCM) with SVN to the distributed model of Git. In the end, most projects will decide on a canonical Git repository anyway which pushes you slightly back towards centralised but there’s still a world of aÂ difference.
So, what’s so good about Git? Well, lots. But first and foremost is it’s exceptionally powerful yet simple branching andÂ mergingÂ that just works. And works fast – remember, with Git everything is local.
One work flow that used to kill me in SVN was that you’d be implementing feature X but someone needed bug Y fixed immediately involving some of the same code. Getting just the fix for Y in was tough and complicated. And branching in SVN isn’t quick or simple. In Git, I branch from the main development branch for every new feature, bug fix, etc and then merge what I need between them and back into develop when they’re ready to be pushed back to the agreed canonical repository.
I’ve been so impressed with Git that I’ve moved an open source project we created in Open Solutions over to Github: ViMbAdmin. I’ve also forced the rest of my team in Open Solutions over to Git and migrated a number of customer projects already. And we’re reapingÂ productivityÂ rewards!
How we work Git for projects was taken from this excellent post which I would fully recommend:Â A successful Git branching model.
Useful Git Links:
- Git for SVN Users:Â http://git.or.cz/course/svn.html
- Git SVN Comparison:Â https://git.wiki.kernel.org/index.php/GitSvnComparison
- Git’s own website:Â http://git-scm.com/
- Git Cheat Sheets:Â http://help.github.com/git-cheat-sheets/
- The excellent book Version Control with GitÂ (from Amazon)