On my Linux server there were several git branches I wanted to remove. I used git branch -D branche_name
and deleted all these branches except for one. For this one branch called feat/implement-h
I get the error:
“error: cannot lock ref 'refs/heads/feat/implement-h': Unable to create '/data/web/xxx/xxx/.git/refs/heads/feat/implement-h.lock': Permission denied”.
I recently got access to this Linux server, which has been used for several years but I didn't have access before. Any idea how I could remove this branch?