Hi, It is an option, but I do not feel like a very convenient one. I have found a hack in one of mailing lists where Linus discribed howto create many repositories in one directory.
I would rather go for: 1) Using one repository and creating 3 branches: common, ver1, ver2 2) using 2 repositories: ver 1 and ver 2 in one directory. For now I would go for 2) because: 1) On my local server I create 3 repositories in one directory: one for tracing all files ( all developers will clone this), one for tracking only ver1 and other for tracking ver 2. 2) When a developer clones the local repo he/she gets all files and do not worry about remote repositories 3) Only the admin/developer responsible for pushing to remotes will have more work, not other developers Let me know what you think. Kacper Kacper On Fri, Jan 8, 2010 at 12:07 PM, Tekkub <[email protected]> wrote: > You probably want to restructure your files so that you have one "core" > repo that has the stuff every project needs, and then break out the config > and other files that can be kept in separate repos for each project. > Depending on how you structure it you could use submodules to bring the > core repo into the project repos, while still maintaing them in independent > repos. > > Tekkub > GitHub Tech Support > http://support.github.com/ > Join us on IRC: #github on freenode.net > Discussion group: [email protected] > > > On Thu, Jan 7, 2010 at 6:18 PM, Kacper <[email protected]> wrote: > >> Hi, >> >> [Example Problem] >> >> In my local Git repo I have 5 files. I commit to two different git >> repositories from my local repository. >> I need to commit 3 files to both remotes, but only one of the rest to >> the REMOTE 1 and the other of the rest to the REMOTE 2. I do not want >> REMOTE 1 to see any history of FILE 4 and REMOTE 2 to see any history >> of FILE 5, but would like to store them both in my one local repo. >> >> [LONG DESCRIPTION] >> >> I have two versions of one project in one local git repository. I have >> to commit this repository into 2 remote repositories, one for each >> version; >> >> LOCAL GIT(V1/V2) -> REMOTE GIT(V1), REMOTE GIT(V2) >> >> I have some files in the LOCAL GIT repository which should only go to >> REMOTE GIT(V1) and other should only go to REMOTE GIT(V2). Now I >> commit full local repository to both remotes. Can I only commit some >> files to REMOTE1? >> >> I need to have both version of the project in one repository, but >> would like to have an options to divide history a bit. I do not think >> that any branching can help as then I would have to make the same >> changes to both branches mostly. Most of the code, 90% of the code is >> the same for VER 1 and VER 2. New code is usually the same for both >> versions. >> >> THANK YOU, >> >> Kacper >> >> -- >> You received this message because you are subscribed to the Google Groups >> "GitHub" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<github%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/github?hl=en. >> >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "GitHub" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<github%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/github?hl=en. > >--
You received this message because you are subscribed to the Google Groups "GitHub" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/github?hl=en.
