title: Do I need Garbage Collection after using BFG to rewrite git history
body: <p>We committed some password into our bitbucket repository this is against our organisation security policy, so I have used the BFG Repo Cleaner to replace all the passwords with the word <strong>Removed</strong> by creating a mirror locally then</p>
  
  <pre><code> bfg --replace-text passwords.txt  my-repo.git
  </code></pre>
  
  <p>it does the job as described on their website, the password does get removed!</p>
  
  <p>the surprise is that it </p>
  
  <ul>
  <li>replace the passwords in the file </li>
  <li>deletes the old commits</li>
  <li>then make some new commits
  rather than rewrite the history based on the old commits....</li>
  </ul>
  
  <p>so the problem is the password still can be viewed from the old bitbucket url which points to the old commits </p>
  
  <p>my question is how can I removed the deleted commits from bitbucket or perhaps from git history? which in turn stops the URL points to the deleted/old commits showing the password we intended to remove? </p>