I like to reset my local repository to catch up with the remote repository HEAD. From Reset local repository branch to be just like remote repository HEAD and other sites, I can see the normal command set is:
git fetch origin
git reset --hard origin/master
However, that's still not enough for me. What else can I check/should I do?
Long story, similar with Merge remote repository commits to the local, I have two local repositories say A and B. B was created from A just by copying files, well in fact, both A and B are in VM and the VM for B was duplicated from A. Both repositories A and B have the same remote git repository.
The repository B lives his life - are added some patches, updated spec files, etc, while repository A stays at the point of VM duplication. Now I want to bring my local repository A up to where B is, via their common remote git repository. So I tried git pull first, but get Already up-to-date.. Then I did the above two commands, i.e., 
$ git fetch origin
$ git reset --hard origin/master
HEAD is now at 49e7629 - ...
at repository A. However, that 49e7629 HEAD is still old, comparing to repository B. 
The git log shows that repository B still have more updated than repository A. What else can I check/should I do? 
Has it anything to do with how my remote git repository is configured? Here is my remote git repository:
$ cat .git/config 
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = ssh://git@bitbucket.org/myid/myrepo.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master
Thanks
 
     
     
    