I am new to git. I try to move a bunch of git projects from one remote repository to another.The followings are what I want to do:
get all the project and codes from "aaa" remote repository, use repo init -u git://aaa/manifest -b test, then use repo sync to get all the code under "test" branch.
push these codes to "bbb" remote repository, all the projects and codes have to be uploaded to another branch "clean". Before uploading, all the projects were created on bbb remote repository.
I first tried to get codes of branch test from aaa remote repository, and it ran fine without any problems. Then when I wanted to upload to another remote repository, I got rejected and couldn't push. The most common error message I got was: "git push (no common ancestry)".
I would like to know if there is any simple way to get all the codes base on manifest.xml then push to another remote repository without doing any changes? I've been trying to do this for one week, but still couldn't' get it. I would be very appreciated if anyone can help me with this issue, thank you so much!
01.10.2014 Recruit:
I want to move at least 100 projects from one remote server to another, not only move one project. So if there are 100 projects under branch "test" on host "A", I want to move them to host "B", and put under branch "guest". Hope you would understand my questions, and thanks for the 2 answers I got already, you're so kind.