git - .. 在 git 命令中是什么意思?
问题描述
我明白是什么git cherrypick commitA..commitB
;我刚刚看到你也可以使用 .. in git diff
。我不明白为什么那里有必要。
..
有一致的意思吗?是什么..master
意思git diff ..master
?
解决方案
相关的 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.
推荐阅读
- python - 如何使用 Python 将网站上的多个 Excel 工作表下载到 Pandas DataFrame 中
- sql - DBMS_SQL.LAST_ERROR_POSITION:PostgreSQL 数据库的错误位置
- java - 如何使用 Mockito 和 JUnit 在 Spring Boot 中测试 DELETE 方法
- java - 比较循环数组中的元素(java)
- c++ - 关于 typedef 和向量的说明
- c# - 无法从 Podio 的 API(应用程序)获取所有项目。C#
- python - 使用熊猫连接两个数据帧时出错
- c# - 从 JSON 路径读取日期时间并将其写入另一个文件时维护源字符串格式
- angular - 修改 Ionic Storage 中的部分对象
- http - 在 Traefik 路由上限制允许的方法