//B是你 fork A生成的
git clone B.git

git remote add upstream A.git

git pull upstream master

git push origin master

 

 

   http://os.51cto.com/art/201308/408674.htm