I am Using GitHub for version Control
Unfortunately, I merged the branch with master using the below code
git checkout master
git merge updating-users
Now, I just want to know , How to de-merge the branch(updating-users) from master?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From within
master, do agit reset --hard #commit_idto the most recent good commit onmaster. (You can get the commit id by goinggit log.) Theupdating-usersbranch will be unaffected.If you’ve already pushed the merge to GitHub, you’ll have to push again and pass
--forcesince you’ve overwritten the history.