标签:
1 clone 自己的git仓
git clone https://github.com/YOUR-USERNAME/Spoon-Knife
2 查看自己的本地仓对应的远程仓
git remote -v
3 增加新的远程仓
git remote add upstream https://github.com/octocat/Spoon-Knife.git
4
git remote -v
5 同步远程仓数据
git fetch upstream
6 切换到本地仓的master分支
git checkout master
7 将远程仓的master分支merge到本地的master分支
git merge upstream/master
标签:
原文地址:http://www.cnblogs.com/Eastsong/p/4989674.html