I'm currently moving from symfony 1.4 using SVN to Symfony2 using Git. I am new to Git and have read a lot of documentation since a week but, unfortunately, I am unable to find a way to work as I worked before with SVN. Indeed, I understood that the approach is different between these two SCM.
Let explain how I worked with sf1.4 and SVN. My repository structure was like this :
root /* Main repository */
branches
tags
trunk
apps
backend
frontend
cache
[...]
lib
[...]
vendor
symfony /* SVN external to symfony sources */
log
plugins
sfThemePlugin /* SVN external to sfThemePlugin */
xxMyPlugin /* SVN external to a plugin repository I develop */
test
web
In this way, I was able to :
Now I would like to do the same with a Symfony2 project and Git. The problems are :
What would be the best approach to do this ?
I was unclear about if you're already using them, or were just referring to "submodules" in the generic sense, but check out submodules for keeping everything together but being able to push/pull independently.
For your src and test problem, if you want to layer local changes into a folder, the best way is to propagate them through a local branch, as I described here. That question was for temporary debug changes, but the basic principle still applies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With