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

相關文章
相關標籤/搜索