I am stuck in situation, where one of the config file in my project has a signing password in it and its been committed on to git since the start (Almost 800+) commits so far. I want to move the password from that config file and use it separately from now on. But my concern is the older commits still have that content and I want to update in all those. The best way I could come up with is to move it to different repo altogether and start the project from fresh . But I am curious if git has some thing which I can use to achieve the same without creating new repo excluding the file which has password. Please help.
======Edit============= This was added as support to tell that this is not the duplication post of this . I want to remove the content from file not delete the file from git. Hope it helps to identify it as unique.