2 ms·
> deleting 1 file from all commits in a repo (almost impossible without using an external non-git tool) That seems like the exact opposite of the purpose of ve
by WorkerBee28474 2y ago
> deleting 1 file from all commits in a repo (almost impossible without using an external non-git tool)
That seems like the exact opposite of the purpose of version control.
- anonymoushn 2y agoIt ends up being a worthwhile thing to do if someone has checked in a large file that shouldn't be in git or whatever
- tverbeure 2y agoSomebody accidentally checks in an AWS private key and it gets found out much later.
- JohnMakin 2y agoThen removing it from history doesn’t do anything because you already need to rotate the key
- Smithalicious 2y agoThe classic example is accidentally committing a binary file or some other large-as-in-filesize garbage -- simply deleting the file preserves it in history, bloating the size of the repo.