git 显示额外提交的日志命令
git log command showing extra commits
我 运行 进入以下命令 git log project-1419...6d6f52c1228e70bcad026eb402d023ce3d5fd023
显示以下提交,列表显示提交 edfcf238 tag: project-1419
已经标记为 project-1419
,为什么显示这个提交?如何避免这种情况?
usernames-MacBook-Pro-2:project gnakkala$ git log project-1419...6d6f52c1228e70bcad026eb402d023ce3d5fd023 --pretty=oneline --abbrev-commit --decorate --graph
* 6d6f52c1 (origin/Weekly_release) <change://issue/37959336> OSmilestone: 19A156 802.1X Test Cases failing due to security dialogue pop-up (STILL FAILING)
* 6b5e5efc <change://issue/46756098> tech menu shows 0 bars erroneously for current network if we don't have an IP address assigned
* e78e923a <change://issue/46321911> APPLE80211_M_TCPKA_TIMEOUT is getting posted twice for each TCP keep-alive timeout instance
* 4bb5b8b7 <change://issue/45958314> OS Mojave clients not joining Wi-Fi after sleep
* 33a8eb85 <change://issue/46519151> CrashTracer: wps at wps: asl_init
* 68e7e73e <change://issue/46621429> [OSmilestone] 18B75/J130: tech menu locks up on first click: [CWInterface(Private) queryScanCacheWithChannels:ssidList:maxAge:maxMissCount:maxWakeCount:maxAutoJoinCount:error:]
* bfc30c11 <change://issue/46389983> [OSmilestone 19A362 + 11/30 release] projectd crashing while toggling between AWDL AirDrop and Legacy
* 78e09047 <change://issue/46472555> milestone19A366: techAgent process is leaking based on leaks testing.
* affc189a <change://issue/46431578> J90/18E151: Authentication repeatedly failing on AppletechSecure after upgrade install
* 51ef814c <change://issue/46420325> 18C45 techAgent using 800+ MB
* 6c5fd17a <change://issue/44946795> OS should call DE for ABC when projectd receives driver_availability with certain reason/subreason codes
* edfcf238 (tag: project-1419, origin/mac_wlan_12072018a) <change://issue/46389983> [OSmilestone 19A362 + 11/30 release] projectd crashing while toggling between AWDL AirDrop and Legacy
语法:
project-1419...6d6f52c1228e70bcad026eb402d023ce3d5fd023
表示:
- L = set(所有提交都可以从字符串
project-1419
转换为 的任何哈希 ID 访问)
- R = set(所有提交都可以从
6d6f52c1228e70bcad026eb402d023ce3d5fd023
)
- 走这两组的symmetric difference。即枚举(L\R)∪(R\L).
非正式地,设置的差异是所有提交都可以从任一提交访问,不包括所有提交可以从两个提交访问。如果 project-1419
是解析为提交 edfcf238
的标记,它肯定会在 L 集中。如果它不在 R 集合中——从你给我们看的东西中看不到,除非暗示——那么它在对称差异中。
您可能想使用以下语法:
project-1419..6d6f52c1228e70bcad026eb402d023ce3d5fd023
这需要一个简单的集差操作。请注意,此语法有 两个 点,而不是三个。
(大多数遍历修订范围的 Git 命令以这种方式使用这两种语法。git rebase
命令没有;它专门处理三点,并且不允许两点语法完全没有。git diff
命令首先不会遍历修订范围,而是特别对待这两种语法。)
("Syntaxes" 是一个奇怪的复数。Arguably, it should be syntaces, but it isn't. 也请参阅另一个答案:这里有一个很好的论据,可以在谈论 [ 时使用 syntagma =18=] 和 A...B
.)
我 运行 进入以下命令 git log project-1419...6d6f52c1228e70bcad026eb402d023ce3d5fd023
显示以下提交,列表显示提交 edfcf238 tag: project-1419
已经标记为 project-1419
,为什么显示这个提交?如何避免这种情况?
usernames-MacBook-Pro-2:project gnakkala$ git log project-1419...6d6f52c1228e70bcad026eb402d023ce3d5fd023 --pretty=oneline --abbrev-commit --decorate --graph
* 6d6f52c1 (origin/Weekly_release) <change://issue/37959336> OSmilestone: 19A156 802.1X Test Cases failing due to security dialogue pop-up (STILL FAILING)
* 6b5e5efc <change://issue/46756098> tech menu shows 0 bars erroneously for current network if we don't have an IP address assigned
* e78e923a <change://issue/46321911> APPLE80211_M_TCPKA_TIMEOUT is getting posted twice for each TCP keep-alive timeout instance
* 4bb5b8b7 <change://issue/45958314> OS Mojave clients not joining Wi-Fi after sleep
* 33a8eb85 <change://issue/46519151> CrashTracer: wps at wps: asl_init
* 68e7e73e <change://issue/46621429> [OSmilestone] 18B75/J130: tech menu locks up on first click: [CWInterface(Private) queryScanCacheWithChannels:ssidList:maxAge:maxMissCount:maxWakeCount:maxAutoJoinCount:error:]
* bfc30c11 <change://issue/46389983> [OSmilestone 19A362 + 11/30 release] projectd crashing while toggling between AWDL AirDrop and Legacy
* 78e09047 <change://issue/46472555> milestone19A366: techAgent process is leaking based on leaks testing.
* affc189a <change://issue/46431578> J90/18E151: Authentication repeatedly failing on AppletechSecure after upgrade install
* 51ef814c <change://issue/46420325> 18C45 techAgent using 800+ MB
* 6c5fd17a <change://issue/44946795> OS should call DE for ABC when projectd receives driver_availability with certain reason/subreason codes
* edfcf238 (tag: project-1419, origin/mac_wlan_12072018a) <change://issue/46389983> [OSmilestone 19A362 + 11/30 release] projectd crashing while toggling between AWDL AirDrop and Legacy
语法:
project-1419...6d6f52c1228e70bcad026eb402d023ce3d5fd023
表示:
- L = set(所有提交都可以从字符串
project-1419
转换为 的任何哈希 ID 访问) - R = set(所有提交都可以从
6d6f52c1228e70bcad026eb402d023ce3d5fd023
) - 走这两组的symmetric difference。即枚举(L\R)∪(R\L).
非正式地,设置的差异是所有提交都可以从任一提交访问,不包括所有提交可以从两个提交访问。如果 project-1419
是解析为提交 edfcf238
的标记,它肯定会在 L 集中。如果它不在 R 集合中——从你给我们看的东西中看不到,除非暗示——那么它在对称差异中。
您可能想使用以下语法:
project-1419..6d6f52c1228e70bcad026eb402d023ce3d5fd023
这需要一个简单的集差操作。请注意,此语法有 两个 点,而不是三个。
(大多数遍历修订范围的 Git 命令以这种方式使用这两种语法。git rebase
命令没有;它专门处理三点,并且不允许两点语法完全没有。git diff
命令首先不会遍历修订范围,而是特别对待这两种语法。)
("Syntaxes" 是一个奇怪的复数。Arguably, it should be syntaces, but it isn't. 也请参阅另一个答案:这里有一个很好的论据,可以在谈论 [ 时使用 syntagma =18=] 和 A...B
.)