WinCVS 提交损坏的 Word 文件
我使用 WinCVS 在 CVS 服务器中提交 MS Word 文件。我选择添加选项作为文本。是否应该以二进制格式添加。现在我检查了我的文件。当我尝试打开这些文件时。它说这些文件已损坏并且无法打开。有什么方法可以更改位于 CVS 服务器中的这些文件的格式或检索这些文件,因为我在本地计算机上没有备份。
I commit a MS word file in CVS Server using WinCVS. I selected the add option as Text. whether it should be added as binary format. Now I checked out my files. when i tried to open those files. it says that these files are corrupted and can not open. is there any way to change the format of these files located in CVS-Server or retrieve those file as i have no backup on my local machine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MS Word 文件是二进制文件,因此 CVS 在添加到存储库时很可能会损坏它们。
我不熟悉 WinCVS,但建议寻找一个允许将文件类型从“文本”更改为“二进制”的选项。如果您找不到这样的选项,那么您可以尝试删除这些文件,然后再次将它们添加为二进制文件(我已经在该线程中看到此报告适用于 WinCVS:http://dbaspot.com/forums/configuration-management/193699-binarys-text.html)。
(或者,如果您习惯从命令行/DOS 提示符使用 CVS,那么您可以直接使用 CVS:移动到包含签出文件的文件夹,然后
对每个有问题的文件执行:
MS Word files are binary files, so it's very possible that CVS corrupted them when adding to the repository.
I'm not familiar with WinCVS but would recommend looking for an option which allows the file type to be changed from "text" to "binary". If you can't find such option then you might try removing the files and then adding them again as binaries (I've seen this reported as working for WinCVS in this thread: http://dbaspot.com/forums/configuration-management/193699-binarys-text.html).
(Alternatively, if you're comfortable using CVS from the command line/DOS prompt then you could use CVS directly: move to the folder with the checked-out files and then do:
for each of the problem files.)