How do I delete a merge from github, permanently?

I accidently merged a project with another project that had nothing to do with it, which I didn't want to do. I successfully unmerged the projects. However, now I want to delete the erroneous commits. How do I do this.

I tried using git rebase, but it doesn't display the merge.


If you have already successfully unmerged the projects (which I assume you did through a git reset --hard HEAD~N), then you need to force the changes onto the "mainline" via a:

git push -f

Please note that this isn't generally advised unless you know for sure that no one pulled from the "mainline" after you accidentally made an undesired commit.

Need Your Help

Activate CAB menu when OnClickEvent happens in Android

android android-actionbar android-gridview android-menu contextual-action-bar

Trying to activate CAB menu when clicking on MenuItem from ActionBar. Here is how I set the GridView for listening to Multi Choice. The multiModeChoiceListener is working fine when I long press on ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.