Bzr完全删除修订版(带文件)
我无意中将一些机密文件提交到 bzr 分支。更棘手的是我还将它们推到了启动板上。
我做了一个 bzr 恢复,但是,如果我转到那个脏版本,我仍然可以看到这些文件。是否可以完全返回到以前的版本,使那些文件完全消失?
或者作为替代方案,如果我删除启动板项目的 trunk
分支,我是否能够创建新的 trunk
?
I've unintentionally committed some confidential files to a bzr branch. What's even more sticky is that I also pushed them to launchpad.
I made a bzr revert but, if I go to that dirty revision, I can still see those files. Is it possible to completely return to a previous revision, so that those files completely disappear?
Or as an alternative, if I delete the trunk
branch of a launchpad project, will I be able to create a new trunk
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
因此,根据 TridenT 和 jelmer 的建议,解决方案是:
所有这些粘性文件都消失了。
谢谢你们。
So according to TridenT's and jelmer's recommendations the solution is:
and all those sticky files are gone.
Thank you guys.
如果删除启动板的主干分支,您将能够创建新的主干。
您还可以使用“bzr push --overwrite -rREVNO”完全返回到以前的版本,其中 REVNO 是您要返回的版本。
If you delete the trunk branch of a launchpad you will be able to create a new trunk.
You can also completely go back to the previous revision by using "bzr push --overwrite -rREVNO" where REVNO is the revision you want to go back to.
您可以执行
取消提交
。对于用户来说,这会将其从分支中删除。
在 bzr 存储库中,它实际上会取消修订版与主线的链接。
You can do a
uncommit
.For the user, this will remove it from the branch.
In the bzr repo, it will in fact unlink the revision from the main line.