以EasyPR项目为例
作者原项目地址是: https://github.com/liuruoze/EasyPR.git
我frok后的项目地址是:https://github.com/willhope/EasyPR.git
1、git clone fork的项目到本地,命令是:
git clone https://github.com/willhope/EasyPR.git
2、进入刚才clone的文件目录下,然后增加源分支地址到你项目远程分支列表中,命令是:
cd EasyPR
git remote add EasyPR https://github.com/liuruoze/EasyPR.git
3、fetch源分支到本地,命令是:
git fetch EasyPR
4、合并两个版本的代码
git merge EasyPR/master
5、最后一步,把合并后的代码push到你的Github项目上去,这步需要你输入你的账户名和密码
git push origin master