Execute the following command replacing /path/to/sensitive-file
by the file you wish to remove from git history:
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch /path/to/sensitive-file' --prune-empty --tag-name-filter cat -- --all