一起"svn: E155010: 提交失败"问题的解决(Mac环境,svn命令行)

习惯于通过命令行操作svn,今天如往常一样提交代码:

AnnytekiMacBook-Air:weiyibao Anny$ svn ci -m “code”

居然报错,如下:

svn: E155010: 提交失败(细节如下):

svn: E155010: 丢失了预定增加的“/Users/Anny/Documents/iOS/WeiYiBao/weiyibao/Pods/YUSegment/Pod”

解决办法如下:

svn status

响应:

!       Pods/YUSegment

!       Pods/YUSegment/Classes

!       Pods/YUSegment/Classes/XDTwoTitleView.h

!       Pods/YUSegment/Classes/XDTwoTitleView.m

!       Pods/YUSegment/Classes/YUMixtureView.h

!       Pods/YUSegment/Classes/YUMixtureView.m

!       Pods/YUSegment/Classes/YUSegment.h

!       Pods/YUSegment/Classes/YUSegment.m

!       Pods/YUSegment/LICENSE

!       Pods/YUSegment/Pod

!       Pods/YUSegment/Pod/XDTwoTitleView.h

!       Pods/YUSegment/Pod/XDTwoTitleView.m

!       Pods/YUSegment/README.md

!       Pods/YUSegment/XDTwoTitleView.h

!       Pods/YUSegment/XDTwoTitleView.m

这只是其中一部分,显然Pods/YUSegment已被删,所以提交报错,我们只需通过svn强制删除之,这样svn的提交计划就没有它们了:

AnnytekiMacBook-Air:weiyibao Anny$ svn delete –force Pods/YUSegment

D         Pods/YUSegment

D         Pods/YUSegment/Classes

D         Pods/YUSegment/Classes/XDTwoTitleView.h

D         Pods/YUSegment/Classes/XDTwoTitleView.m

D         Pods/YUSegment/Classes/YUMixtureView.h

D         Pods/YUSegment/Classes/YUMixtureView.m

D         Pods/YUSegment/Classes/YUSegment.h

D         Pods/YUSegment/Classes/YUSegment.m

D         Pods/YUSegment/LICENSE

D         Pods/YUSegment/Pod

D         Pods/YUSegment/Pod/XDTwoTitleView.h

D         Pods/YUSegment/Pod/XDTwoTitleView.m

D         Pods/YUSegment/README.md

D         Pods/YUSegment/XDTwoTitleView.h

D         Pods/YUSegment/XDTwoTitleView.m

再执行

svn ci -m “code”

就能顺利提交到代码库了。

    原文作者:jiangxd
    原文地址: https://www.jianshu.com/p/4440a73e4c02
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞