提交代码
一、fork - MR
➜ next git:(master) git remote -v
origin git@github.com:luodaoyi/hexo-theme-next.git (fetch)
origin git@github.com:luodaoyi/hexo-theme-next.git (push)
// 将大仓的远程仓库添加到remote
➜ next git:(master) git remote add upstream https://github.com/iissnan/hexo-theme-next.git
// 查看是否添加成功
➜ next git:(master) git remote -v
origin git@github.com:luodaoyi/hexo-theme-next.git (fetch)
origin git@github.com:luodaoyi/hexo-theme-next.git (push)
upstream https://github.com/iissnan/hexo-theme-next.git (fetch)
upstream https://github.com/iissnan/hexo-theme-next.git (push)
➜ next git:(master) git fetch upstream //会拉去全部分支,也可以指定分支
* [new branch] dev -> upstream/dev
* [new branch] master -> upstream/master
* [new branch] pisces -> upstream/pisces二、压缩合并(squash merge)的方式提交代码
Last updated