Back when I was first starting with Git, I pushed my config.php file and some unneeded cache files into the repo. I have seen that it is possible to use filter branch to remove unwanted files from history. So say I had these files I wanted to remove:
- config.php
- forums/cache/*.php
there is more, but I can figure it out when someone tells me how to do those. I am using BitBucket with SourceTree.