Git log <since> <to> shows the entire log instead of the specified

git -log man page says:

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

since..until Only show commits between the named two commits. When or is omitted, the default is HEAD, that is, the tip of the current branch. For a more complete list of spell methods and see gitrevisions (7).

When I do git -log for some repo links, I get a hole log:

$ git log HEAD^ HEAD
commit 1e939a4f7097efd03b8a66607b561c5f698b3082
Author: Vasiliy <[email protected](none)>
Date:   Wed Apr 11 13:58:03 2012 +0400

    3 commit

commit 1da7dcfc1920130f3de9a7c6b8f02d68923d12b7
Author: Vasiliy <[email protected](none)>
Date:   Wed Apr 11 13:57:50 2012 +0400

    second commit

commit ee8d884f5fb364f667f8dcbf27b23afb3a4eeb85
Author: Vasiliy <[email protected](none)>
Date:   Wed Apr 11 13:57:31 2012 +0400

    first commit

$ git branch
* master

What should I do to show the log from then until some changes?

+3
source share
2 answers

Didn't you miss ..?

git log HEAD^..HEAD 
+8
source

git log HEAD~ HEAD, HEAD HEAD ~

git log HEAD~..HEAD , git log HEAD ~ HEAD

+1

All Articles