The False Use of SVN

I wanted to move some folders to another new folder(suppose the name is A).

So I cutted them, and then pasted them in the new folder A(the new folder had not been submited to the svn).Finally I submitted.The result is: I had added the new folder, but hadn't move the folders to A.And the worse thing is the folders what I want to move to A had been deleted,though in the local, the operation seemed correct.If another place updated the version, they would lost the folders.

That's because the folders were been controlled by svn, so you couldn't move them to A just by cut and copy.To solve this situation, you can delete the .svn folders which were been hided in the folders(the folders were lost in others' version, but still in your version),and then submit.You'll find, now the folders are added to A.

The right operation is:Add the new folder A and submit it to the svn first, and then move the folders by right mouse clicked to A, and choose "svn move the version controlled file to current position".Finally, submit it.

You can also delete the .svn folders in the folder that you want to move, and now use cut and copy is ok.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值