error: cannot lock ref ‘refs/remotes/origin/xxx’: is at `someHash` but expected `someOtherHash`

Refer to the pull code error: cannot lock ref ‘refs/remotes/origin/xxx’: ref XXX is at OOo expected XXX

Method: execute git remote prune origin to refresh the difference between remote and local

The author said that it needs to be in the root directory. If it is not in the root directory, it is speculated that there will be a pit of local refresh

Similar Posts: