Folder is locked and I can't unlock it

前端 未结 17 2216
离开以前
离开以前 2021-01-30 07:48

When I\'m trying to update or commit code from a project it\'s telling me that the folder is locked. When I try to \"release lock\" it says that there\'s nothing to unlock in th

17条回答
  •  走了就别回头了
    2021-01-30 08:41

    I had this problem where I couldn't unlock a file from the client side. I decided to go to the sever side which was much simpler.

    On SVN Server:

    Locate locks

     svnadmin lslocks /root/of/repo
     (in my case it was var/www/svn/[name of Company])
    
     You can add a specific path to this by svnadmin lslocks /root/of/repo "path/to/file"
    

    Remove lock

     svnadmin rmlocks /root/of/repo “path/to/file” 
    

    That's it!

提交回复
热议问题