Fork me on GitHub

让github上fork的项目同步原项目

1
2
3
4
5
6
7
8
9
10
11
12
13
14
## 先clone到本地仓库
git clone https://github.com/yunshu2009/think.git

## 保持和远程仓库同步
git remote add upstream https://github.com/top-think/think.git

## 拉取远程仓库最新代码
git fetch upstream

## 合并到本地仓库
git merge upstream/master

## 及时更新最新改动
git pull --rebase
------本文结束感谢阅读------
欣赏此文?求鼓励,求支持!