How to delete a commit already made in bitbucket

Asked

Viewed 24 times

0

I would like to know how to delete a commit already done in bitbucket, I already pushed but just looking in the repository I found an error how to remove this change?

  • Bruno, git reset does not answer: https://git-scm.com/docs/git-reset ?

  • @Danielmendes then I even tried this option he even removes from the local repository but still appears in Bitbucket.

  • It also scrolls to make a git revert: https://git-scm.com/docs/git-revert.html. This guy reverses the changes to the informed commit, then you push that revert again, it won’t delete the commit, but it will "undo" it.

  • @Danielmendes try this

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.