Git - Can we recover deleted commits?
<p>I am surprised, I couldn't find the answer to this on SO.</p>

<blockquote>
  <p>Can we recover/restore deleted commits in git?</p>
</blockquote>

<p>For example, this is what I did:</p>

<pre><code># Remove the last commit from my local branch
$ git reset --hard HEAD~1

# Force push the delete
$ git push --force
</code></pre>

<p>Now, is there a way to get back the commit which was deleted? Does git record(log) the delete internally?</p>