I want to make an java application. This is stored on gitHub (so uses git for versioning). Now this programm uses apikeys in example from Google. I want to hide this Api key in the versioning system (so that no one other can use it).
I've read something about the .gitignore file, but i don't want to delete the whole file from versioning. I only want to hide the apiKey from others to see.
I read following thread and I think this is what I'm searching for, but I really have no idea how to do this.