- 设置 upstream 源:
git remote add upstream [email protected]:airbnb/javascript.git
master 用于跟踪upstream
- git fetch upstream
- 对比文件差异
git diff master upstream/master README.md
git diff master upstream/master react/README.md
git checkout cn
,修改 cn 分支下 README.md- master 节点同步到 upstream 最新节点;
git checkout master && git rebase upstream/master
sh scripts/page.sh
将 Markdown 文档发布到 gp-pages 分支