Git revert merge to specific parent

I have a git repo and am having trouble reverting a merge. The current hash is 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3. and it has two parents:


doing the following will revert to df1acf5f54426d30f12c6b4558c3dd922297aae3

  • Third-Party Code and Git
  • Git global tags— evidently bad, but why?
  • Is there a quick git command to see an old version of a file?
  • cloning error when checking out private github repo
  • Can you interact with the index/staging area with TortoiseGit?
  • is there a simple way to know which files will be updated in the next 'git pull'?
  • git revert -m 1 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3

    how do I revert to e19b912404ffd3c153ccac3072dbf22396896d2a?

  • How to merge head commits from another branch?
  • Getting started with Eclipse + EGit - confused
  • git + go - how to handle subprojects with go get
  • I can't uninstall Git
  • How can i remove detached commits from git?
  • How do I change the GitHub URL in Visual Studio?
  • One Solution collect form web for “Git revert merge to specific parent”

    git revert -m 2 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3

    Parents are numbered starting with 1; you want the second one.

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