Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

revert last merged change in develop branch

Ruchi Gupta September 17, 2018

Hi,

I made a commit, push and merge on one change which is breaking an existing functionality. How can i revert/ remove this change/ commit from latest develop.

Best regards,

Ruchi

1 answer

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 17, 2018

Hi @Ruchi Gupta

Welcome to the community!

To revet the last commit from the file use git revert. you should be on the same branch that we have been done the last commit.

$ git revert HEAD

Ruchi Gupta September 17, 2018

Hi, Thanks for reply. As we are committing changes not through git but using some other tool which doesnt have option to revert the merges, is there any other way through which we can revert.

Yogesh Mude September 17, 2018

Can you tell me which tool you are using for committing the changes to bitbucket repo? 

Are you using Bitbucket cloud or server?

Ruchi Gupta September 17, 2018

We are doing development in Quintiq tool and committing and pushing changes from the same tool. (can revert to last commit also, using the same tool). And merge the change in repository over web.

Yogesh Mude September 17, 2018

Are you using Bitbucket cloud or server?

Ruchi Gupta September 17, 2018

sorry, i am not sure about this. i think it is bitbucket cloud.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events