如何从Bitbucket Merurial存储库中删除远程提交 [英] How to delete remote commit from bitbucket mercurial repository

查看:111
本文介绍了如何从Bitbucket Merurial存储库中删除远程提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Bitbucket Merurial存储库中删除远程提交?

How to delete a remote commit from bitbucket mercurial repository?

发现:在管理员"部分中找不到存储库管理". answer 中提到的内容. Bitbucket是否已弃用/删除此功能?如果不在哪里?请注意,我是该存储库的所有者.

Findings: I could not found "Repository management" in the "Admin" section. which is mentioned in this answer. Is this feature deprecated/dropped from bitbucket? If not where it is? Note that I am owner of the repository.

给专家的提示!仅::请记住,我已经将我的承诺推送到了bitbucket.我知道删除提交不是一件好事,我对通过添加额外的提交来取消我的历史记录不感兴趣.此外,我可以确保您会有人从此存储库的每个本地克隆中手动剥离提交.因此,您不必为此担心.

Note for expert! only: Remember I have already pushed my commit to bitbucket. I know deleting commit is not good, I am not interested to a backout my history by adding an extra commit. Moreover I can ensure you that someone will strip the commit manually from every local clone of this repo. So you don't have to be worried about this.

推荐答案

在BitBucket上,转到您正在谈论的存储库的概述页面.

On BitBucket, go to the overview page for the repository you're talking about.

左侧有一个菜单,它的底部是一个名为 Settings 的条目,点击该菜单.
然后,在设置页面上,有一个名为 Strip更改集 Strip提交的条目,您可以在其中指定要删除的修订.

There is a menu down the left hand side and at the bottom of it is an entry called Settings, click on that.
Then on the settings page there's an entry called Strip Changesets or Strip commits where you can specify the revision to strip.

请记住,如果要删除的变更集具有子变更集,则这些子变更集也将被剥离.

Remember that if the changeset you want to remove has child changesets that those will be stripped too.

这篇关于如何从Bitbucket Merurial存储库中删除远程提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆