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

  • Query on setting up a pre-receive hook in git
  • How to import Github issues and wikis to BitBucket?
  • git converts characters like ✓ and ✗ to underscore (_)
  • Get latest git tag from the current commit
  • Tell Git to stop prompting me for conflicts when none really exist?
  • How to show git log history for a sub directory of a git repo?
  • git revert -m 1 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3

    how do I revert to e19b912404ffd3c153ccac3072dbf22396896d2a?

  • Git Gui: Perpetually getting “This repository currently has approximately 320 loose objects.”
  • How can I recover a Subversion repository from a git-svn copy?
  • Removing untracked files
  • How to reference public bitbucket repo as npm module in package.json on heroku?
  • Correct setting for git autocrlf as per use case
  • Keeping of changes from one file inside two different changelists with Git and IntelliJ IDEA
  • 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.