Perlessence

git in a multi-repo directory structure

October 30, 2007 23:54

I'm using git for version control both at Gaia and here at home. I'm also using Jakob's Headlight MVC framework, checked out with git. The problem I'm encountering is that the application code is under the repo root. This makes it difficult to separate the applications code I'm writing from the changes I'm making to the core Headlight source. Off the top of my head, I want to say that I add the applications directory to the Headlight exclude list and then make a repo for tracking my application code inside that directory. I have access to a git expert and will be checking with him on what to do.

Update October 31, 2007 10:16 : I'm runnning one repo called headlight_core that will hold all the changes I make to Headlight. I have a second repo that is my website that will pull from that repo. Long term, I will have a third repo that is my staging environment which the production site will pull from.

© Probably a million other people from whom I've subconsciously stolen this layout. Also, Karen Ziv (me). Don't steal my stuff.