반응형
# Problem
When I pushed the commit, I got a that message:
error: update_ref failed for ref 'refs/remotes/origin/feature/CLS-48-robot': Cannot update the ref 'refs/remotes/origin/feature/CLS-48-robot': unable to append to .git/logs/refs/remotes/origin/feature/CLS-48-robot: Permission denied
# Solution
i) updata ref header
$ git update-ref refs/remotes/origin/feature/CLS-48-robot b54cdd0e2f475ca81390c7f0a236a1085992250e
ii) Try cleaning-up your local repository with:
$ git gc --prune=now
$ git remote prune origin
If so, push will solve the problem
$ git push
# Reference
- [StackOverFlow] git pull fails "unable to resolve reference" "unable to update local ref": https://stackoverflow.com/questions/2998832/git-pull-fails-unable-to-resolve-reference-unable-to-update-local-ref
- [Blog] git error: update_ref failed for ref: https://trustit.tistory.com/170
반응형