git
› Pro Git
› Atlassian Git Tutorial
› Pro Git 简体中文翻译
› GitX
laobaoabc
V2EX  ›  git

git merge 的一个问题

  •  
  •   laobaoabc · Mar 16, 2017 · 3351 views
    This topic created in 3540 days ago, the information mentioned may be changed or developed.

    请问下

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

    是 git merge origin/current_branch 吗

    用 fetch + merge 感觉是这样的

    一直没查到这个。。。

    3 replies  •  2017-03-16 20:20:39 +08:00
    flniu
    flniu
    Mar 16, 2017
    1
    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
    laobaoabc
    OP
    Mar 16, 2017
    2
    @flniu 非常感谢
    blackywkl
    blackywkl
    Mar 16, 2017
    3
    直接 git merge 不加任何参数的话,会将当前分支的上游分支合并进来的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1850 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 15:47 · PVG 23:47 · LAX 07:47 · JFK 10:47
    ♥ Do have faith in what you're doing.