If files in the xx/ folder were already tracked by Git before you added the folder to .gitignore, they will not be automatically ignored. You need to remove them from tracking using the following commands:
bash
git rm -r --cached xx/