Porting .gitattributes over from Drupal 8.x.