There must be something I've overlooked when I learned Git. After all I'm fairly new to it.
My workmate says he's pushed back some changes he made to my commit in our remote repository. However the git log has no record of this new push.
How can I see what he pushed and thus know what branch to pull?
you have to git fetch
his changes first. you can then show them using git log origin/branch
(branch being very likely master
)
git fetch
retrieves all the remote changes, copies them to your local clone and updates the remote-tracking branches (those origin/…
stuff, see git branch -a
). to get his changes into your local branch, use either git pull
or git merge
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