开发者

How to solve svn --force rm

开发者 https://www.devze.com 2023-01-08 22:52 出处:网络
So you have a directory with a file dir/myfile dir is inside a svn folder and you do svn add dir svn --force rm dir/.*

So you have a directory with a file

dir/myfile

dir is inside a svn folder and you do

svn add dir

svn --force rm dir/.*

You were trying to not add some .something files but you did it the wrong way. You now do ls and dir is no there. You have a prob开发者_JAVA技巧lem. You still have a copy of myfile, so you do:

mkdir newdir
cd newdir
cp fromsomeplace/myfile .
svn add .

But no. svn complains that newdir is scheduled to be removed.

Note this:

$ svn status
D    .


how about reverting to the pristine working copy you started with?

svn revert dir

or maybe

svn revert newdir

and then start over (you say you have a copy of myfile anyway.)

0

精彩评论

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