title: Can information which has been overwritten with git commit --amend be exposed through git push?
body: <p>I investigated a tricky issue and finally decided to create a SSCCE by reducing my closed source project step by step. In each step I verified that the issue occurs and committed to <code>git</code> with <code>git commit --amend</code>, i.e. there's only one commit. Now, I want to publish the SSCCE on a FLOSS code hosting platform like gitlab.com or github.com as public project.</p>
  
  <p>Do I risk to expose any file content which has been overwritten with <code>git commit --amend</code>? The current commit which will be pushed can be considered save to publish.</p>
  
  <p>I'm aware that I can delete the repository and recreate it locally. It's more of a question to learn.</p>