I have already looked through the relevant docs of git-scm.com and gitref.org , but I cannot figure it out.
Let's say I want to get all the commits on Tuesday, November 12, 2013. Using the existing repo as an example, I know that the fact that I committed that day, and also committed the day before and the day after.
From 2013-11-11 and 2013-11-12
All the following give me fixes for November 11th and 12th:
git log --after="2013-11-11" --until="2013-11-12"git log --since="2013-11-11" --until="2013-11-12"git log --after="2013-11-11" --before="2013-11-12"git log --since="2013-11-11" --before="2013-11-12"
Only 2013-11-12
All the following do not give me any commits:
git log --since="2013-11-12" --until="2013-11-12"git log --since="2013-11-12" --before="2013-11-12"git log --after="2013-11-12" --until="2013-11-12"git log --after="2013-11-12" --before="2013-11-12"
From 2013-11-12 and 2013-11-13
As expected (from the results of 2013-11-11 and 2013-11-12 above), all of the following give me the results from November 12 to 13:
git log --since="2013-11-12" --before="2013-11-13"git log --after="2013-11-12" --before="2013-11-13"git log --since="2013-11-12" --until="2013-11-13"git log --after="2013-11-12" --before="2013-11-13"
... etc. etc. I feel like I have tried all possible combinations since , after , before and until , but I still can’t find the answer, and I don’t understand if these options are inclusive or exclusive, because they seem to be inclusive if the two dates are different, but are exceptional if they are on the same day. Am I missing something / what am I doing wrong ?!
git git-log
3cheesewheel Nov 14 '13 at 19:55 2013-11-14 19:55
source share