0

when I tried under in linux terminal, git push origin +master

I saw this error

error: update_ref failed for ref 'refs/remotes/origin/master': cannot lock ref 'refs/remotes/origin/master': Unable to create '/home/[myfile_route]/.git/refs/remotes/origin/master.lock': Permission denied

I think the reason is, that my github repository is locked repository-only I can see. Is it right? or if it's wrong, why this happened?

torek
  • 448,244
  • 59
  • 642
  • 775
linel
  • 13
  • 1
  • 3
  • 1
    Does this answer your question? [Git push ERROR: Unable to create '.git/refs/remotes/jr/master.lock': File exists](https://stackoverflow.com/questions/52323860/git-push-error-unable-to-create-git-refs-remotes-jr-master-lock-file-exists) – Joe Aug 05 '21 at 13:40
  • `origin` does not appear to be on GitHub at all. What does `git remote -v` print? – torek Aug 05 '21 at 15:03
  • `I tried git remote -v` , and origin https://github.com/~/~.git (fetch) origin https://github.com/~/~.git (push) is comes out – linel Aug 06 '21 at 02:28
  • I tried rm -f , but it doesn't work – linel Aug 06 '21 at 03:47

0 Answers0