本地删除文件后SVN提交错误

编程入门 行业动态 更新时间:2024-10-25 21:26:34
本文介绍了本地删除文件后SVN提交错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个正在使用Netbeans 6.1构建的项目,并且正在使用SVN.我删除了本地计算机上的一些文件,然后尝试将更改提交到SVN存储库.提交失败并显示错误消息

I have a project that I am building with Netbeans 6.1 and I am using SVN. I deleted some files on the local machine then attempted to commit my changes to th SVN repository. The commit fails with the error message

"C:\ path \ to \ project \ myfile"的条目没有URL

Entry for 'C:\path\to\project\myfile' has no URL

myfile是已删除文件.

Where myfile is the deleted file.

是否可以通过某种方式告诉SVN该文件已从项目中删除,并且应从存储库中删除该文件?

Is there some way to tell SVN that the file was deleted from the project and that it should be deleted from the repository?

推荐答案

svn更新会将文件带回,从而修复了本地存储库.

An svn update will bring the file back, fixing your local repo.

然后,您应该可以在文件上进行"svn删除",这告诉您的本地存储库要删除该文件,并且还可以从文件系统中删除该文件.

You should then be able to do an "svn delete" on the file, which tells your local repo that the file is to be deleted, and also deletes it from the file system.

然后您应该能够将更改提交回存储库.

You should then be able to commit the changes back to the repo.

更多推荐

本地删除文件后SVN提交错误

本文发布于:2023-07-27 00:22:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219211.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   文件   SVN

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!