I pushed a commit from my MacBook into the master branch of a project, but the commit doesn't appear on my Windows laptop (git log
), it only appears on my MacBook (git log
) or on the Bitbucket web interface of the repo.
How is that possible?
Both git local repos are referring to the same branch (master), and to the same bitbucket repo (one is pointing to it via SSH, the other (Windows) via HTTPS).
Commit happened 40 minutes ago, so I doubt any delay is occuring here.
Even after a pull/fetch, a simple git log
(which defaults to git log master
) would not show the commit pushed.
Try git log origin/master
(after at least a git fetch
)
Try to run git fetch
or git pull
on the Windows laptop.
Git Log does not update automatically on every push to the origin repository.
git fetch
will fetch the changes from the remote repo but won't merge them into your local repo, while git pull
will fetch the changes and try to merge them into your local repo.
Here are some useful inks:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With