again in other words, i want main to now contain all changes from A and B
and i want to use only main from now on
On Wednesday, February 26, 2014, Ed Pataky <ed.pat...@gmail.com> wrote:
> the purpose for me is, i no longer want to commit in A or B only Main but
> i want the old history to survive for those ... it looks like if i do this,
> A and B will still be indepwndant repos, which is ok, but say i make
> anchange to A or B , will i see the change in main and can i commit it to
> main, or i still have to commit to A and B? and, if i can commit to main,
> then a month down the road, does it mean i will have tons of uncommited
> changes in A and B? in other words, i want to keep the history of A and B
> but i want A and B to stop tracking changes and only main tracks changes
> ... does that make sense, is it possible?
> On Wednesday, February 26, 2014, Thomas Ferris Nicolaisen <
>> On Thursday, February 27, 2014 8:12:26 AM UTC+1, HWSWMAN wrote:
>>> I have a directory ./MAIN/ with /A/ and /B/ under MAIN
>>> A and B have their own repos ... i want to combine them so i have a repo
>>> under MAIN, while keeping the history of A and B ... how can i do this? i
>>> use sourcetree if any specific help using sourcetree is possible ..
>>> otherwise i am somewhat comfortable using command line git then opening
>>> that in sourcetree later ..
>>> any help is appreciated
>> This sounds like a job for git subtree. Here's an extended article on it:
>> So, first you want to move A and B out of the way:
>> cd MAIN
>> mv A ..
>> mv B ..
>> Now initialize MAIN into being a git repository:
>> git init
>> Now, add A and B as subtrees:
>> git subtree add --prefix A ../A master
>> git subtree add --prefix B ../B master
>> Job done!
>> Note that if you don't have the git subtree command in your Git
>> installation, see the above mentioned blogpost for instructions on how to
>> get it working.
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Git for human beings" group.
>> To unsubscribe from this topic, visit
>> To unsubscribe from this group and all its topics, send an email to
>> For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.