Y
Y
yv19952016-11-16 13:47:25
git
yv1995, 2016-11-16 13:47:25

How to remove the latest commit from Bitbucket?

I accidentally committed the whole project instead of a separate module! How to remove this commit from Bitbucket! Provided that he is not the last?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
toxa82, 2017-07-16
@toxa82

1) revert this commit.
2) use rebase -i, remove unnecessary commit in the list. Will change all commit hashes above this and push can only be done with -f.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question