赞
踩
在github或gitee页面上, 点击fork按钮, 将B的项目拷贝一份到A自己的代码仓库中.
克隆A自己的代码仓库到本地.
git clone https://github.com/A/A.git
git remote -v
将B的项目作为最新代码的参考标准(upstream 是上游仓库的别名,别名随意命名)
git remote add upstream https://github.com/B/B.git
git remote -v
git fetch upstream
git remote add origin https://gitee.com/northeast-big-bared-flower/kd-osysteam.git
git pull
git push -u -f origin master
当自己fork的仓库更新时,需要
git fetch upstream
git merge upstream/master
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。