How to unsquash a commit?

I have squashed 40 commmits at some point in time, and would like to pick back one commit. Is there some way to do this? I have the commit ref (93ebc467ff512580ae3c5a76790f09dfd5e3e6f2) that I would like to unsquash.

  • How to get branch name in log?
  • For every commit, create an equivalent compiled commit in a separate repo or branch
  • Git: How to see old version of a file (before it was added to the staging area/index)?
  • Bitbucket: git push error: pack-objects died of signal 13
  • Rails 4: Heroku push rejected / Gemfile Issues / GIT Issues
  • git parent tree accidentally pushed into subtree
  • Un-ignore a specific bin directory
  • how to do git-pull without getting untracked files updated
  • 2 Solutions collect form web for “How to unsquash a commit?”

    You can add the patch representing that commit onto the top of the branch you are on by doing

    git cherry-pick 93ebc467ff512580ae3c5a76790f09dfd5e3e6f2

    You could use git reflog to browse all the commits that existed! Or since you have the commit hash you could just do a git checkout 93ebc467ff512580ae3c5a76790f09dfd5e3e6f2 and see the commit itself..

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