Junio C Hamano <gitster@xxxxxxxxx> writes: > This is totally expected; nothing to see here. To put it another way, we do not have "end-of-line comment" (i.e. the leading part of a line has payload, but the line is chomped in the middle with a comment character and the remainder of the line is ignored) at all. We have "commented line" (in other words, a line that is totally commented out and gets ignored). I think it is very clearly documented in "git help attributes": A `gitattributes` file is a simple text file that gives `attributes` to pathnames. Each line in `gitattributes` file is of form: pattern attr1 attr2 ... That is, a pattern followed by an attributes list, separated by whitespaces. Leading and trailing whitespaces are ignored. Lines that begin with '#' are ignored. Patterns that begin with a double quote are quoted in C style.