We use Github for source control in our organization. Multiple developers continuously merge their changes to remote source repository. In my case I cloned the repository when two weeks back and there were multiple merges after that. Now I am trying to get the latest revision of the code using.
git pull origin master
I for sure know that there were multiple merges that have gone in since last time I cloned but pull command tells me that its already up to date. Am I missing anything here?
git reset --hard HEAD~20 # some large number
git pull origin master
This fixed my problem with an un-pullable update. The idea is to push HEAD back far enough to clear up any confusion for git. Then make the desired pull.
One explanation would be that the latest commits have been done on another branch, as explained in "Git pull from my public repository not working".
The other possibility is for you to be in a detached HEAD mode.
That would make any git pull
"up-to-date" since you are in any branch.
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