* Dennis <denny@xxxxxxxxxxxxxxxxxx> wrote: Hi, > Now, this can be either really simple or really complicated. My first > question is: how do I set the repository up in the proper way where I > could work on all 3 projects separately, with additional possibility of > working on branch1 only and later committing my changes to branch2 and > branch3. As first step you could create 3 separate git repos in each directory and add everything to it (git init, git add -A, git commit). Then rename the branches properly (so instead of "master", they'll be called "branch1", "branch2", "branch2" or something like that). Create another (maybe bare) repo elsewhere, add it as remote to the three other ones and push their branches upwards. Now you have 4 repos, 3 for working on the individual branches and another for collecting them all (hub model). You could also choose to throw the first three away and only work in the last one. > (Since projects are virtually identical, a fix in one branch > usually needs to be propagated to other branches) In your case, cherry-pick might be the right for you. You could also do a little bit refactoring, making a 4th branch which the other 3 are then rebased onto. Then you could do your fixes in that branch and merged into or rebase the other 3 onto that one. > My second question is that each branch has a huge folder with image data. > By huge I mean 1 to 4Gb, depending on the branch. Since images are not > directly relevant to the development work, is there a way to not include > those folders in git? see .gitignore file. nevertheless it might be useful to also have all the images in the repo for backup reasons. BTW: if you're concerned about disk space, you could add the object dir of the 4th (hub) repository to the 3 working repos (run git-gc in the hub repo before that!). Next gc runs will remove the objects that are already present in the hub. But beware! If you remove something in the hub repo and run git-gc there, you could loose objects in the other repos! (maybe it would be wise to add the 3 working repos as remotes in the hub and always run an git remote update before git-gc in the hub). cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@xxxxxxxx mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ---------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html