Subversion 创建本地镜像
在我们的小组中,我们遇到了一些颠覆的问题(我们仍在学习如何正确使用它)。基本上,最后的修订版都是假的。
我想做的是使下一个版本成为我本地计算机上内容的精确副本 - 我计算机上的文件位于服务器上,不在我本地计算机上的文件不在此版本中修订。
我要做的是重置存储库并从头开始,但我不想丢失最后的修订。
使用 TortiseSVN 和 Google 代码,我怎样才能完成这个任务?
In our small class group, we've had a stuffup with subversion (we are still learning how to use it properly). Basically, the whole last revision is bogus.
What I would like to do is make the next revision an exact copy of what is on my local computer - the files that are on my computer are on the server, and the files that aren't on my local computer aren't in this revision.
What I was going to do is reset the repository and start from scratch, but I don't want to lose our last revisions.
Using TortiseSVN and Google code, how can I accomplish this task?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定我是否明白你想要什么。您可以在 Tortoise 日志窗口中使用“恢复此修订版的更改”来撤消修订版的更改。这将撤消工作副本中的更改,您必须提交它们。
如果您的工作副本包含您想要保存的更改,您就有更多的选择。
I'm not sure I understand what you want. You can use 'revert changes from this revision' in Tortoise log window do undo changes from revision(s). This will undo the changes in your working copy and you'll have to commit them.
If your working copy contains changes that you'd like to save you have more the one option.
首先,除了删除存储库后备存储之外,您不能“重置存储库”,对于 Google 代码,您无论如何也不能这样做。
即使您从存储库中删除所有文件和目录,历史记录和旧版本仍然存在。
其次,只需将存储库中的 HEAD 检出到单独的目录中,然后将每个数据文件替换为本地版本。小心不要触及 .svn 目录。
顺便说一句:这是两种不同的解决方案:一种是删除所有内容并从头开始,而第二种是半手动执行此操作。
First of all, you cannot not "reset the repository" short of deleting the repository backing store, which, in case of Google Code you cannot do anyways.
Even if you delete all the files and directories from the repository, the history and old revisions are there.
Second, just checkout the HEAD from the repository into separate directory, and replace every data file with your local version. Be careful not to touch .svn directories.
BTW: those are two different solutions: one to delete everything and start from scratch, while the second is doing this semi-manually.