SVN 405 Method Not Allowed

前端 未结 11 1538
情书的邮戳
情书的邮戳 2021-01-30 12:30

I accidentally deleted a folder in SVN and added it back immediately. I ran into an issue with this and my solution ended up removing the folder completely from my local copy as

11条回答
  •  不要未来只要你来
    2021-01-30 12:51

    I had a similar problem. I ended up nuking it from orbit, and lost my SVN history in the process. But at least I made that damn error go away.

    This is probably a sub-optimal sequence of commands to execute, but it should fairly closely follow the sequence of commands that I actually did to get things to work:

    cp -rp target ~/other/location/target-20111108
    svn rm target --force
    cp -rp ~/other/location/target-20111108 target-other-name
    cd target-other-name
    find . -name .svn -print | xargs rm -rf
    cd ..
    svn add target-other-name
    svn ci -m "Re-re-re-re-re-re-re-re-re-re import target"
    svn mv target-other-name target
    svn ci -m "Re-re-re-re-re-re-re-re-re-re import target"
    

提交回复
热议问题