"Failed to add file '(name here)': object of the same name already exists

本文介绍了解决Subversion中因文件名大小写敏感导致的问题的方法。在Windows系统下,由于其对文件名大小写不敏感,可能会出现与Unix或Subversion不一致的情况。文章提供了几种解决方案,包括登录Unix系统进行操作或是使用TortoiseSVN工具。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

"Failed to add file '(name here)': object of the same name already exists.

or

"Can't open file 'folder.svn/tmp/text-base/file.svn-base': The system cannot find the file specified."

Both mean that two files in the same folder have the same name except for capitalization; for example "Readme.txt" and "README.TXT". Unix and Subversion are case-sensitive, so the files are considered to be completely unrelated. But in Windows is not case-sensitive, so when it tries to update README.TXT on top of Readme.txt (say), it breaks.

The surest way to fix the problem is to log in to a Unix system (such as io.uwplatt.edu) and use the unix notes to check out the repository there. You can then use the svn mv command to rename one of the files. If you are in the middle of trying to add a file to your repository, you might try using TortoiseSVN->Rename... to rename the existing file to something entirely different and then updating. Note that you need to use the TortoiseSVN rename commands; merely renaming the file in Windows Explorer won't fix your problems.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值