Add .gitattributes for $Id$ lines

This is similar to what those $Id$ lines did in subversion:

> Git replaces $Id$ in the blob object with $Id:, followed by the
> 40-character hexadecimal blob object name, followed by a dollar sign $
> upon checkout.

(from gitattributes(5)).