Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posted
6 June 2008 @ 9am

Tagged
Git, Open Source, Rails, Ruby

Discuss

Git lessons learned

Lessons learned from day to day use with various ruby and rails projects.

* Submodules completely suck when things get complex - I’m moving away from no submodules, and using direct exports for now until I have time to research braid or piston 2.0. For more details on this, see this or this post on the github group.

* Use capistrano 2.2, not 2.3! 2.3 breaks git support

* Always use :remote_cache for deployments — super fast with git

* If you have weird errors, it probably means you need to pull - when in doubt pull to make sure you have the latest

* Branch more locally - I’ve been burned a few times when I’ve started work in master and then regretted it later when I wished my work wasn’t in mainline (yes, its possible to fix this after the fact, but that gets into more advanced git usage)


1 Comment

Posted by
Chad Humphries
6 June 2008 @ 4pm

We’ve had equal problems with braid and have switched some of our projects to submodules over the last month. So far we haven’t had any issues with submodules other than the one patch to cap to correct the git-fetch command.


Leave a Comment

Refactotum Rails Conf 2008 Git 1.5.6 released