title: How to find the original commit of an amended one?
body: <p>Actually by an accident I found out something interesting. I amended a change to an existing local commit. I know that will <em>change</em> the hash of the original commit - at least that's what I thought. But it seems git creates a complete new commit. No problem so far. </p>
  
  <pre><code>$ vim foo
  $ git add foo
  $ git commit -m "Edited Foo"
  $ git log --oneline -n 1
  5b122c7 Edited Foo
  
  $ vim foo
  $ git add foo
  $ git commit --amend
  $ git log --oneline -n 1
  98f1e64 Edited Foo
  $ git show 5b122c7   # wait what?
  </code></pre>
  
  <p><code>git show 5b122c7</code> will show me the original commit - so the amended commit is effictively a new commit.</p>
  
  <p>But why is the old commit still in the repository? Okay it could be neat to have the original commit to go back. </p>
  
  <p>But the original commit <code>5b122c7</code> does not even appear in <code>git log --all</code><br>
  Also a <code>git revert 5b122c7</code> does not fall back to <code>5b122c7</code> but instead to the previous commit of my original one.</p>
  
  <p>I'm just curious about this behavior and want to know: is there a way to find the original commit <code>5b122c7</code> with <code>git log</code> or something? In case I don't know the hash of the original commit: how can I find the hash?</p>