error: cannot lock ref 'refs/remotes/origin/refactor': 'refs/remotes/origin/refactor/api' exists; cannot create 'refs/remotes/origin/refactor' ! [new branch] refactor -> origin/refactor (unable to update local ref) code example
Example: git unable to update local ref
git gc --prune=now
git remote prune origin
rm .git/refs/remotes/origin/master
git fetch
git pull origin master