On macOS, if you change a folder's icon, a file called "Icon\r" (carriage return) is created inside that directory. Now I don't know how to exclude it from git. Listing it as "Icon?" works, but that would also match "IconF" or anything like this.
Is there any escape sequence git understands in .gitignore files to match exaclty that character?