As shown in the picture, in the past, hidden files on Mac could not be released at first, but then they would appear for some reason, and then an exception would be reported when submitting. You can choose to discard files before each submission! You can’t ignore files either, it’s very troublesome
Then manually add .DS_store to .gitignore