如何从Bitbucket删除/删除推送? [英] How do I delete/remove a push from Bitbucket?

查看:156
本文介绍了如何从Bitbucket删除/删除推送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我推送了错误的存储库,现在管理员希望我删除上一次推送. 我不能只删除该存储库.

I pushed on the wrong repo, and now the admin wants me to remove my last push. I can't just delete the repo.

如何从存储库中删除推送?

How do I remove my push from the repo?

推荐答案

每个存储库的[管理员设置] ,有一个名为 Strip提交的菜单项:

In the admin settings of each repository, there's a menu item called Strip commits:

要删除完整的推送,您需要删除推送的第一个(最早的)修订版本.

To delete your complete push, you need to strip the first (oldest) revision that you pushed.

然后,Bitbucket将删除此修订版及其所有后代:

Bitbucket will then remove this revision and all its descendants:

这篇关于如何从Bitbucket删除/删除推送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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