I'm experiencing the following situation:
user@host:~myproj$ git log . | head
commit 824982108230598203958209
Author: me <me@me>
Date: Web Feb 14 00:17:13 2018+0100
My comment of commit B
commit 215237562352395782927652
Author: me <me@me>
Date: Web Feb 13 00:05:21 2018+0100
My comment to last common commit C
user@host:~myproj$ git log inner/directory | head
commit 124975408286439738467394
Author: me <me@me>
Date: Web Feb 14 10:08:35 2018+0100
Comment to a more recent commit A
commit 215237562352395782927652
Author: me <me@me>
Date: Web Feb 13 00:05:21 2018+0100
My comment to last common commit C
That is if I run git log
from root directory I see commit B and C, if I run git log
from an inner directory I see commit A and C, with A more recent than B.
I'm also in the following situation:
user@host:~myproj$ git status
On branch master
Your branch is up-to-date with 'origin/master'
nothing to commit, working directory clean
user@host:~myproj$ git pull
Already up-to-date.
user@host:~myproj$ git push
Everything up-to-date
I thought that asking logs from root directory would have shown every commit in all sub-directory of the project; since now I see I'm wrong, how can I have a full list of commit history order by commit date?
Also, why this is happening? Is this a normal git behavior or am I m[ie]ssing something?