gpt4 book ai didi

git log 显示所有日志而不是指定

转载 作者:太空狗 更新时间:2023-10-29 13:49:47 28 4
gpt4 key购买 nike

git-log 手册页说:

git log [options] [since..until] [[--] path...]

since..until Show only commits between the named two commits. When either or is omitted, it defaults to HEAD, i.e. the tip of the current branch. For a more complete list of ways to spell and , see gitrevisions(7).

当我对 repo 的一些引用执行 git-log 时,我得到了漏洞日志:

$ git log HEAD^ HEAD
commit 1e939a4f7097efd03b8a66607b561c5f698b3082
Author: Vasiliy <dixel@unen.(none)>
Date: Wed Apr 11 13:58:03 2012 +0400

3 commit

commit 1da7dcfc1920130f3de9a7c6b8f02d68923d12b7
Author: Vasiliy <dixel@unen.(none)>
Date: Wed Apr 11 13:57:50 2012 +0400

second commit

commit ee8d884f5fb364f667f8dcbf27b23afb3a4eeb85
Author: Vasiliy <dixel@unen.(none)>
Date: Wed Apr 11 13:57:31 2012 +0400

first commit

$ git branch
* master

我应该怎么做才能显示自某些修订以来和直到某些修订之前的日志?

最佳答案

你是不是错过了 ..

git log HEAD^..HEAD 

关于git log <since> <until> 显示所有日志而不是指定,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10103882/

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