In one of the file of my project there is the code of the protection dongle. Normally before committing I set the code to 0, but once I forgot to do that and now the code is stored the local git archive. I don't want to discharge all the history (I made some other commits after), but I only want to remove that specific file from that specific commit (I know its SHA) leaving all the other committed file in the same commit.
Is it possible? If yes, how can I do it?
I followed the steps indicated here: https://sethrobertson.github.io/GitFixUm/fixup.html#change_single_deep_simple (my case should be "Changing a single commit involving only simple commits") but I don't know how to remove the file with the code.