cvs,“应删除文件,并且文件仍然在那里(或再次返回)”。 [英] cvs, "file should be removed and is still there (or back again)"

查看:151
本文介绍了cvs,“应删除文件,并且文件仍然在那里(或再次返回)”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试提交一个项目,该项目中的文件已被 cvs remove d删除,但实际上需要存在该文件中。内容已被完全重写,但需要保留相同的名称。

I am trying to commit a project in which a file has been "cvs remove"d, but actually needs to be there. The contents has been completely rewritten, but it needs to retain the same name.

我无法提交项目或重新添加文件,而不会遇到此烦人的错误信息。如何在CVS中取消删除文件?

I am unable to either commit the project or re-add the file without getting this annoying error message. How do I "unremove" a file in CVS?

推荐答案

这对我有用:


  1. 重命名文件

  1. Rename the file

mv mistakenly_removed_file wtf


  • 询问cvs以添加旧版本:

  • Ask cvs to add the old version:

    cvs add mistakenly_removed_file
    


  • cvs然后报告它具有恢复已删除的文件。

  • cvs then reports it has resurrected the removed file.

    mv wtf mistakenly_removed_file
    


  • cvs状态显示文件现在已本地修改

    cvs status reveals that the file is now "locally modified"

    这篇关于cvs,“应删除文件,并且文件仍然在那里(或再次返回)”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆