cvs,“文件应该被删除并且仍然存在(或再次返回)”

发布于 2024-08-01 21:03:09 字数 127 浏览 5 评论 0原文

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

如果没有收到此恼人的错误消息,我无法提交项目或重新添加文件。 如何“取消删除”CVS 中的文件?

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.

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

cvs add FILE

或者,如果您想从存储库获取最新副本

cvs update -C FILE
cvs add FILE

Or, alternatively, if you want to get the latest copy back from the repository

cvs update -C FILE
可遇━不可求 2024-08-08 21:03:09

这对我有用:

  1. 重命名文件

    mv 错误地_删除_文件 wtf 
      
  2. 要求cvs添加旧版本:

    cvs 添加errornly_removed_file 
      
  3. cvs 然后报告它已恢复已删除的文件。

    mv wtf 错误地删除了文件 
      

cvs status 显示该文件现在已“本地修改”

This worked for me:

  1. Rename the file

    mv mistakenly_removed_file wtf
    
  2. Ask cvs to add the old version:

    cvs add mistakenly_removed_file
    
  3. cvs then reports it has resurrected the removed file.

    mv wtf mistakenly_removed_file
    

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文