gpt4 book ai didi

git blame - 忽略未提交的更改

转载 作者:IT王子 更新时间:2023-10-29 00:46:36 27 4
gpt4 key购买 nike

来自 git blame <file> 的部分输出:

    ...
d6182477 (<author> 2012-06-22 09:44:02 -0400 239) ...
d6182477 (<author> 2012-06-22 09:44:02 -0400 240) ...
25f98f3f (<author> 2012-06-15 15:44:00 -0400 245) ...
25f98f3f (<author> 2012-06-15 15:44:00 -0400 246) ...
35853aa2 (<author> 2012-06-22 08:12:41 -0400 247) ...
25f98f3f (<author> 2012-06-15 15:44:00 -0400 248) ...
-> 00000000 (Not Committed Yet 2012-06-27 08:33:35 -0400 249) ...
-> 00000000 (Not Committed Yet 2012-06-27 08:33:35 -0400 249) ...
25f98f3f (<author> 2012-06-15 15:44:00 -0400 250) ...
35853aa2 (<author> 2012-06-22 08:12:41 -0400 251) ...
25f98f3f (<author> 2012-06-15 15:44:00 -0400 252) ...
...

如何获得git blame忽略文件中未提交的更改?

最佳答案

git blame HEAD <file>

来自 git blame 手册:

Annotates each line in the given file with information from the revision which last modified the line. Optionally, start annotating from the given revision.

关于git blame - 忽略未提交的更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11226439/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com