zoukankan      html  css  js  c++  java
  • Mac OS X系统下,svn: Can't remove file Operation not permitted.解决方案

    当你的svn出现类似以下错误时,提示Operation not permitted之类的问题,说明项目下 .svn文件夹内的文件权限有问题。

    一般是由于windows和mac操作系统同时操作同个svn,文件权限变化,导致另外一个操作系统无权限操作.svn文件夹里的文件。

    Error:Error performing cleanup for '/Users/Shared/vf': svn: E000001: Can't remove file '/Users/Shared/vf/.svn/pristine/6f/6ff8f348253c55d87b896b7222c9a71a9c37fb9e.svn-base': Operation not permitted.

     

    解决方案:

    cd .svn

    chflags -R nouchg ./

     

     

    nouchg参数说明:

    man chflags

    从man出来的帮助文档可以看到以下内容:

    uchg, uchange, uimmutable

               set the user immutable flag (owner or super-user only)

    Putting the letters “no” before or removing the letters “no” from a keyword causes the flag to be

         cleared.  For example: 

               nouchg  clear the user immutable flag (owner or super-user only)

    所以nouchg是从no unchange缩写而来。

  • 相关阅读:
    string用法
    动手动脑
    你已经创建了多少个对象?
    动手动脑
    课程作业2
    课程作业1
    课程作业2
    《大道至简》第一章观后感
    java虚拟机内存区域
    Gitbook安装使用教程
  • 原文地址:https://www.cnblogs.com/wujinhong/p/7273450.html
Copyright © 2011-2022 走看看