Tag Archives: “unable to update local ref”

Git pull Error: “unable to update local ref”

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