Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to undo a commit made directly on bitbucket (browser)?

Jose Balaguer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2019

In my repository I wanted to make a small change to a file. Went to Source opened the file, clicked edit, made the changes, then clicked commit, and now my master has moved.

 

two-master.png

In my development environment (AWS Cloud9 IDE) tried to push new commit to Bitbucket but it says that the commit I made on Bitbucket made the "master" to be "one commit ahead".

I tried to "git fetch && git checkout master" to add the commit to my IDE and update everything from there. Then I tried to "push" it but I ended with "unmerged paths"and "both modified: ..." . I have two different versions of files one on Bitbucket and the other on the IDE.

I think if I could undo the commit I made on Bitbucket I can follow from there but in the repository pages there are no buttons or options to undo or reverse things. It is possible to undo commits directly on Bitbucket? If not, how I do it? 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events