Revert "Revert "Add git attributes and ignore files""

This reverts commit 3d17e3691ee618bd42e1c149be3651ffb656ae44.