代码之家  ›  专栏  ›  技术社区  ›  Mohan

什么是……在git命令中是什么意思?

git
  •  -1
  • Mohan  · 技术社区  · 6 年前

    我明白什么 git cherrypick commitA..commitB 是的,我刚看到你可以用……在里面 git diff 也是。我不明白为什么有必要去那里。

    .. 有一致的含义吗?做什么? ..master 平均值 git diff ..master ?

    2 回复  |  直到 6 年前
        1
  •  1
  •   alfunx Kevin Islas    6 年前

    相关的Git手册 man git-diff 说:

    git diff [<options>] <commit> <commit> [--] [<path>...]
        This is to view the changes between two arbitrary <commit>.
    
    git diff [<options>] <commit>..<commit> [--] [<path>...]
        This is synonymous to the previous form. If <commit> on one
        side is omitted, it will have the same effect as using HEAD
        instead.
    
        2
  •  0
  •   Jeff Dickey    6 年前

    它只是指定一个范围。我会用“to”代替它,就像“committa to commitb”一样。