在macOS和Windows互换的时候经常会遇到这个问题,无论是NTFS还是Fat32

svn: E000001: Can't remove file '文件名': Operation not permitted

这个时候哪怕用sudo来运行svn也是不可能cleanup的,需要一个个文件的rm -f

那就运行这个脚本吧,他能帮你自动的一个个文件删掉

代码块的功能有bug 就这样看吧

d=svn cleanup 2>&1 | grep "Can't remove file" | sed "s/svn: E000001: Can't remove file '//" | sed "s/': Operation not permitted//"
while [ -n "$d" ]
do
echo $d
sudo rm -f $d
d=svn cleanup 2>&1 | grep "Can't remove file" | sed "s/svn: E000001: Can't remove file '//" | sed "s/': Operation not permitted//"
done