社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

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

Mohan • 5 年前 • 1260 次点击  

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

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

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

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

alfunx
Reply   •   2 楼
alfunx    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.