With git it appeared to be a very easy task.
cd A
git remote add test ../B && git fetch test
git merge test/master
git push (if you use a remote repo.)
That's it.
You can also merge a subdir of one repo. into another. But to do so you need to use git filter-branch.
I love git! ;)
11 comments:
Thanks, this was exactly what I was looking for.
Thank you, was really useful! :)
you are welcome ;)
Git is awesome!
Thank you. I am little new to git and was looking for this feature for one of my projects. Your post was very very helpful.
;) You are welcome!
You just saved me some hours of my life. Thanks.
;) Thanks for the comment!
Awsome, this made my day... I spent 30 minutes reading complicated ways to do this and I had it done this way in 15 minutes...
Good work!
Thanks! Your blog lays this out very simply. For folks who want to meld two git repos that involves pruning and grafting, this blog gives a run book-
http://www.simplicidade.org/notes/archives/2009/04/merging_two_unr.html
+1 for what me said. Thanks for taking the time to post.
you are the man. :)
Post a Comment