How to revert back the last merge in GIT

I committed my changes to local master, I merged my changes with the works of another developer who was also working on master, she made few commit before my commit. Finally I made a merge of my work to hers, now it happens that my commit overwrote her changes in the repository. It is there anyway I can revert back the merge?

o - bad merge here that I want to get rid off
|\
| o her commit 1 yesterday
| o her commit 2 yesterday
| o her commit 3 yesterday
o | my commit today
\ |
 o

  • Cannot combine commits using TortoiseGit
  • Unique git url for github repo with multiple branches?
  • git clone -b tag results in - warning: Remote branch not found in upstream origin, using HEAD instead
  • Commit a change to more than one branch in Git
  • Git clone repository error: RPC failed; result=56, HTTP code = 200
  • No access to index file
  • why git-svn should search aggressively for old history?
  • What's the purpose of forking a git repo?
  • 404 error when building Git project in TFS2013
  • Heroku rejects my git push request
  • No releases in github when using git flow release
  • how to cut wrong commit
  • One Solution collect form web for “How to revert back the last merge in GIT”

    You can just move back your master branch one step with git reset <SHA> (see manpage), where <SHA> identifies the commit before the current one (the one you labelled “my commit today”).
    After that, you can look into the git merge manpage for more info on how to prevent the overwriting of changes.

    Git Baby is a git and github fan, let's start git clone.