清理工作区并设置到客户端的新映射
我正在使用 Perforce 将一些代码签入服务器上的工作区。幸运的是,事情变得一团糟。
如何轻松删除服务器上项目上的所有内容,并为客户端(我的开发计算机)上的项目设置新映射?
谢谢
I was using Perforce to check some code in, into a workspace on the server. As luck would have it, things got into a mess.
How can I easily delete everything on my project, on the server, and set a new mapping to the project on the client (my dev machine)?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
obliterate 命令(仅适用于具有超级访问权限的用户) 用于从 Perforce 中永久删除文件。请注意,当您删除文件时,就像它从未存在过一样。所有修订历史记录都将消失。如果您真的真的想要重新开始,那么您应该删除这些文件,否则您可以删除它们(这将保留修订历史记录)。
文件被清除/删除后,您应该能够将新文件重新添加到库中的同一位置。我知道删除这些文件也会将它们从您的工作区中删除,但我已经有一段时间没有删除任何内容了,所以我不记得那里发生了什么。如果删除确实将文件保留在您的计算机上,您只需删除它们即可。
The obliterate command (only available to users with super access) is used to permanently remove files from Perforce. Be aware that when you obliterate a file, it's like it never existed. All the revision history will be gone. If you really, really want to start over, then you should obliterate the files, otherwise you can just delete them (which will maintain the revision history).
Once the files have been obliterated/deleted, you should just be able to re-add the new files to the depot in the same location. I know that deleting the files will also remove them from your workspace, but it's been a while since I've obliterated anything, so I don't remember what happens there. If obliterating does leave the files on your computer, you can just delete them.