1.Fork项目
2.Clone到本地
3.建立与上游的连接
git remote -v
git remote add upstream 项目git地址
4.同步最新代码
git fetch upstream
如果clone的是分支 需要在 upstream 后添加分支名
git fetch upstream dev
git rebase master
git add .
git rebase --continue
5.提交代码
git push origin dev/你的分支
6.创建PR
- 在自己的项目中
New Pull Request - 选择源项目地址和要提交的分支 以及 自己的项目分支