git合并分支

两个分支master和develop-v1.1,将develop-v1.1合并到master。git

提交代码,将在各个分支所作的修改的代码提交。url

新建目录merge,合并工做将此目录中完成。spa

         git clone [url]   it

使用以上命令将master克隆一份到merge目录。ast

        git merge origin/develop-v1.1
im

将develop-v1.1合并到master分支。co

合并的过程当中可能会产生冲突。工作

        git commit -m "代码提交信息"
push

解决冲突,而后提交到本地。background

        git push origin master

提交到远端仓库。

参考:http://git-scm.com/book/zh/v1/Git-%E5%88%86%E6%94%AF-%E5%88%86%E6%94%AF%E7%9A%84%E6%96%B0%E5%BB%BA%E4%B8%8E%E5%90%88%E5%B9%B6

相关文章
相关标签/搜索