- github 上点 fork 按钮 fork 到 https://github.com/nihui/ncnn.git
- git clone https://github.com/nihui/ncnn.git
- cd ncnn
- git remote add upstream https://github.com/Tencent/ncnn.git
我不 PR,就像让 https://github.com/nihui/ncnn.git 的内容和 upstream 一模一样,就像刚 fork 时候的那样子,不要落后了
- cd ncnn
- git checkout master
- git fetch upstream
- git merge upstream/master
- git push
- 先让 https://github.com/nihui/ncnn.git 的内容和 upstream 一模一样,就像刚 fork 时候的那样子,不要落后了
- github 上去自己的 https://github.com/nihui/ncnn.git 页面上新建 branch,比如叫 patch123
- cd ncnn
- git pull
- git checkout patch123
- 开始改代码....
- git commit -m "123"
- git push
- github 上去自己的 https://github.com/nihui/ncnn.git 页面上切换到 patch123,有个 create pull request 按钮,点一下,开新的 PR
- cd ncnn
- git checkout patch123
- git fetch upstream
- git merge upstream/master
- patch123 写的不好,继续改改
- git commit -m "456"
- git push