When using git pull to pull the code, the latest code cannot be pulled, and the error “unable to update local ref” is reported.
In addition to re-clone a copy of the code, you can also use the following solutions:
1. Switch to the previous clone code directory and execute the command git gc –prune=now
2. Then execute the command git remote prune origin
3. Use git pull again
Similar Posts:
- error: cannot lock ref ‘refs/remotes/origin/xxx’: is at `someHash` but expected `someOtherHash`
- [Solved] sourceTree pull code error: remote: HTTP Basic: Access denied
- How to Solve Gitlab Error: remote: The project you were looking for could not be found.
- [Solved] error: failed to push some refs to ‘xxxx’
- Git clone Error: RPC failed; curl 18 transfer closed with outstanding read data remaining
- Git :git – error: RPC failed; curl 18 transfer closed with outstanding read data remaining
- How to Solve error: failed to push some refs to ‘xxxx’
- [Solved] error: when using generate_lm.py for Chinese
- Git pull Error: error: Your local changes to the following files would be overwritten by merge:
- Git Error: fatal: Unable to find remote helper for ‘https’