Revert "Revert "Git attributes and ignore""

This reverts commit d2fe21c2a832c25e95c535c8a35e31b23172243b.