"svn: E155010: 提交失败"问题解决

习惯于通过命令行操作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"

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

 

posted @ 2017-06-19 10:33  Mr.Ming2  阅读(5677)  评论(0编辑  收藏  举报