first

git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch cms/sites/default/settings.php' \
--prune-empty --tag-name-filter cat -- --all

second

git push origin --force --all