I have a project which is under git version control. Everything works smoothly.
I also have “buildtool” directory which have some script for testing,deployment and setup.
Sometime while changing branch I want that directory to be latest and also I want it to be under version control ?
How do I achieve that ?
+1 for submodules (cudos to Adrian Cornish for first suggesting it) You’ve technically got two different projects that have loose coupling, but no real source code coupling. Start off by putting them in separate repositories. Then either leave them completely separate or use submodule to link the build content into the source content.