本地删除文件后SVN提交错误 [英] SVN commit error after deleting files locally

查看:207
本文介绍了本地删除文件后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提交错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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