V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
laobaoabc
V2EX  ›  git

git merge 的一个问题

  •  
  •   laobaoabc · 2017-03-16 10:59:42 +08:00 · 2332 次点击
    这是一个创建于 2592 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请问下

    git merge 的默认行为是什么呢,后面不加分支

    是 git merge origin/current_branch 吗

    用 fetch + merge 感觉是这样的

    一直没查到这个。。。

    3 条回复    2017-03-16 20:20:39 +08:00
    flniu
        1
    flniu  
       2017-03-16 12:08:50 +08:00
    git help merge

    "If no commit is given from the command line, merge the remote-tracking branches that the current branch is configured to use as its upstream. See also the configuration section of this manual page."
    laobaoabc
        2
    laobaoabc  
    OP
       2017-03-16 16:17:56 +08:00
    @flniu 非常感谢
    blackywkl
        3
    blackywkl  
       2017-03-16 20:20:39 +08:00
    直接 git merge 不加任何参数的话,会将当前分支的上游分支合并进来的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2858 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:52 · PVG 14:52 · LAX 23:52 · JFK 02:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.