UNIT GITIGNORE по умолчанию-2021.dwlt
I do not think this is the best practice but it works:
Copy the folder which git keep tracking as backup.
Delete the folder and commit.
Check if git ignore has the string you need.
Restore the folder.
Gianluca Ghigo