Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete/remove a push from 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.

Screenshot of push on Bitbucket

How do I remove my push from the repo?

like image 762
Burning Crystals Avatar asked Apr 10 '14 00:04

Burning Crystals


1 Answers

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


strip commits 1


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

Bitbucket will then remove this revision and all its descendants:


strip commits 2

like image 96
Christian Specht Avatar answered Oct 13 '22 10:10

Christian Specht