4 ms·
Delete the file from (past) commits? Isn't the whole point (idiomatic way) that you don't do that, and only delete it in the newest commit? Unless you mean som
by Xeamek 3y ago
Delete the file from (past) commits? Isn't the whole point (idiomatic way) that you don't do that, and only delete it in the newest commit?
Unless you mean some intentionally weird scenario, where you want to just delete the file to prevent it from being accessible period.
But that's (afaik) against the whole concept of git, and so verry much outside the intended use.
Do I understand your example?
- kibibu 3y agoIt's a fairly common problem when people realise they have inadvertently committed a secrets file. You could say "well don't commit secrets files" but that doesn't immediately solve the problem.