Add missing .gitattributes and .gitignore files.