Study: Software(SW)/SW: Error Bug Fix

[Error fix] Solved 'error: update_ref failed for ref': Troubleshooting most remote branch to local branch relationships(feat. local branch clean-up, git branch)

DrawingProcess 2023. 7. 3. 17:02
반응형

# 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

 

반응형