Forums

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

Undo my merge

arvindkumar.vishwakarma
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 14, 2019

I created bugfix/somthing(branch) from Developer and Developer from Master,

but bymistally i merged my bugfix/something to master. How to undo all

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
May 15, 2019

Hi @arvindkumar.vishwakarma ,

Welcome to the Atlassian Community.

It depends on if you want to be able to later merge your changes on bugfix/something later or not. In both cases you can undo the merge by using 

git revert -m 1 <merge commit hash>

This will roll back the merge to the specified commit. If you want to later be able to merge your changes back again, have a look at this thread.

arvindkumar.vishwakarma
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 16, 2019

Thanks Sir, but sir resolved in another way(Long process), when i merged bugfix/something to master

I created a new folder in my local and I copied the [git fetch && git checkout master],

in my local folder rightclick->Git bash here ->ok

i got my all code in local. then again i rightclicked-> tortoise git and got the all option to revert it.

Thanks again sir

Like jayesh.naik likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events