Reputation: 1412
We can see a commit in remote master
, but not in local master
.
git pull/fetch says local branch is up-to-date.
git show commit-id
in local shows the difference
but git log | grep commit-id
shows nothing.
Surprisingly git log commit-id
shows the commit!
(This commit can be seen from SourceTree in remote origin and thus I can copy the SHA1)
When this commit was pushed, it mysteriously bypassed gerrit code review. gerrit version is 2.8
Upvotes: 1
Views: 1288
Reputation: 38619
Make sure your local branch is tracking the remote branch from the correct remote with git branch -vv
.
Also see where the commit really is present locally with git branch -a --contains <commit-ish>
.
I'd say if pull
is stating you are up-to-date, either you track the wrong branch, or the commit is part of your history and you just missed it.
Upvotes: 1