As Dustin mentioned, the only way to do this is to periodically rewrite the repository. Git definitely does not have “built-in” support for this and is unlikely to have such support in the near future (a fundamental design of this type excludes this feature). This means that if you want to do this, you will have to do it manually.
If you want to try, the answer to this question shows an example of how this can be done with git filter-branch .
Dan molding
source share