Py学习  »  Git

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

Mohan • 4 年前 • 508 次点击  

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

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

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/38197
 
508 次点击  
文章 [ 2 ]  |  最新文章 4 年前
Jeff Dickey
Reply   •   1 楼
Jeff Dickey    5 年前

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

alfunx
Reply   •   2 楼
alfunx    5 年前

相关的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.