Git
Removing sensitive files
Requires BFG Repo-Cleaner to be installed.
To remove the sensitive file, leaving the latest commit untouched (the file will be added in the current state as part of the latest commit):
Cleanup
Expire all unreachable content and pack the repo in the most compact way.
Clear the reflog.