I unwittingly added api key information to a public bitbucket repo, and thought I would learn how to remove it down the road. 6 commits later, I'm now getting around to it, and don't quite understand how to even after reading things like - http://goo.gl/Lf463C.
I don't want to lose my HEAD commit, esp. if I'm learning by trial by fire, so I thought I'd ask the experts. I actually don't have a problem wiping the public repo, and recommitting my latest local repo as the initial either, but hate to lose the learning curve history that I accumulated.
So to summarize, lets say I have 20 commits, and I need to remove a file from the 10th commit, without messing up the other commits, how would I do this? Thanks!