Files not updating using 'git pull'

cao lei picture cao lei · Dec 14, 2013 · Viewed 63.9k times · Source

I am using Git to cooperate with other users, but today I cannot get the latest change on some files using "git pull", and I cannot see the changes in "git log".

What could be the issue?

Answer

ganesh picture ganesh · May 4, 2018

what worked for me is ,

  1. remove .git folder
  2. copy .git from other repo
  3. now git checkout

Before Removing , You can try

git fetch --all 
git reset --hard origin/master

ALL THE BEST