Some time ago I added info(files) that must be private. Removing from the project is not problem, but I also need to remove it from git history.
git
I use Gi
I have found this answer and it helped:
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Found it here https://myopswork.com/how-remove-files-completely-from-git-repository-history-47ed3e0c4c35