如何向开源项目提交pull request
如何向开源项目提交 pull request
fork 到自己的仓库
git clone 到本地
上游建立连接 git remote add upstream
上游的仓库地址
创建开发分支 (非必须) git checkout -b <brance>
修改提交代码 git status
, git add .
, git commit -m
同步代码三部曲 git fetch upstream
, git rebase upstream/master
或 git merge origin <branch>
, git push origin <branch>
提交 pr 去自己 github 仓库对应 fork 的项目下 new pull request