开发者

Synchronizing an accidently deleted local SVN folder

I have a SVN repository on a remote server. I regularly update it with commits from my local dev machine.

I accidently deleted a sub-folder of the r开发者_StackOverflow中文版epository on my LOCAL machine (not on the server). Now I have tried all things to get the folder from repository on my local machine, but for some reason it does not seem to work.

As a last resort, I did a checkout of the deleted sub-folder from Repo browser. But if I now commit from a parent folder, the child-folder modified files are not included in the commit, and I need to commit them separately.

Can someone please tell me how to recover an accidently deleted folder on local machone from the SVN repo??


I am not able to replicate this issue using TortoiseSVN (just mentioning this because of tortoisesvn tag)

I did just solve a similar problem on command line. Regular "svn update" would not bring the folder back in, but this worked:

rm -rf folder
svn up folder

You may want to make sure you have no local changes in the folder first :-)


Just perform update action.


Run an svn update (or whatever the equivalent is in Tortoise) from the folder supposed to contain your missing folder. It will restore any files not deleted through an svn delete.

If you svn deleted the folder, then you must svn revert it. Not sure how you would do it in Tortoise either.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜