SVN 405 Method Not Allowed

前端 未结 11 1353
情书的邮戳
情书的邮戳 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:36

    I also met this problem just now and solved it in this way. So I recorded it here, and I wish it be useful for others.

    Scenario:

    1. Before I commit the code, revision: 100
    2. (Someone else commits the code... revision increased to 199)
    3. I (forgot to run "svn up", ) commit the code, now my revision: 200
    4. I run "svn up".

    The error occurred.

    Solution:

    1. $ mv current_copy copy_back # Rename the current code copy
    2. $ svn checkout current_copy # Check it out again
    3. $ cp copy_back/ current_copy # Restore your modifications

提交回复
热议问题