美文网首页
git合并分支

git合并分支

作者: yedp | 来源:发表于2018-05-09 16:30 被阅读0次

    假如想将dev_1.0.5_yedp_bgxUserInfo分支合并到test分支上

    1、先查看是否在test分支上
    $ git status
    On branch test
    Your branch is up to date with 'origin/test'.

    nothing to commit, working tree clean

    2、合并分支dev_1.0.5_yedp_bgxUserInfo到test分支上
    $ git merge dev_1.0.5_yedp_bgxUserInfo
    Updating 070fcdd..c409471
    Fast-forward
    .../com/wlqq/etc/channel/gx/util/BeanUtils.java | 27 ++
    .../etc/channel/gx/ext/GxUserInfoServiceExt.java | 11 +
    .../gx/ext/impl/GxUserInfoServiceExtImpl.java | 128 +++++++++
    .../channel/gx/ext/vo/res/UserInfoListResVo.java | 285 +++++++++++++++++++++
    .../etc/channel/gx/ext/vo/res/UserInfoResVo.java | 263 +++++++++++++++++++
    .../etc/channel/gx/service/GxUserInfoService.java | 15 ++
    .../gx/service/impl/GxUserInfoServiceImpl.java | 30 +++
    .../gx/web/controller/GxUserInfoController.java | 87 +++++++
    8 files changed, 846 insertions(+)
    create mode 100644 etc-channel-gx-ext/src/main/java/com/wlqq/etc/channel/gx/ext/GxUserInfoServiceExt.java
    create mode 100644 etc-channel-gx-ext/src/main/java/com/wlqq/etc/channel/gx/ext/impl/GxUserInfoServiceExtImpl.java
    create mode 100644 etc-channel-gx-ext/src/main/java/com/wlqq/etc/channel/gx/ext/vo/res/UserInfoListResVo.java
    create mode 100644 etc-channel-gx-ext/src/main/java/com/wlqq/etc/channel/gx/ext/vo/res/UserInfoResVo.java
    create mode 100644 etc-channel-gx-service/src/main/java/com/wlqq/etc/channel/gx/service/GxUserInfoService.java
    create mode 100644 etc-channel-gx-service/src/main/java/com/wlqq/etc/channel/gx/service/impl/GxUserInfoServiceImpl.java
    create mode 100644 etc-channel-gx-web/src/main/java/com/wlqq/etc/channel/gx/web/controller/GxUserInfoController.java

    另:如果合并分支是远端的前面加上origin/
    git merge origin/dev_1.4.2_dingj_qlFafei

    3、提交分支
    $ git push
    Everything up-to-date

    相关文章

      网友评论

          本文标题:git合并分支

          本文链接:https://www.haomeiwen.com/subject/mycorftx.html