$ git fsck --lost-found [... some blobs omitted ...] dangling commit 7c61179cbe51c050c5520b4399f7b14eec943754
git reflog
git merge #sha1
Substitute sha1 for the sha of your commit
https://gitready.com/advanced/2009/01/17/restoring-lost-commits.html