yujietian 发表于 2016-12-5 17:28:42

【转】怎么将master合并到branch

本帖最后由 yujietian 于 2016-12-5 17:31 编辑

摘要: 一般是把branch合并到master,那反过来呢。。。
来自SO顶得最多的答案:http://stackoverflow.com/questio ... evelopment-branchesThis workflow works best for me:git checkout -b develop...make some changes......notice master has been updated......commit changes to develop...git checkout mastergit pull...bring those changes back into develop...git checkout developgit rebase master...make some more changes......commit them to develop......merge them into master...git checkout mastergit pullgit merge develop

转自:https://my.oschina.net/uniquejava/blog/502357?p=1


页: [1]
查看完整版本: 【转】怎么将master合并到branch