diff --git a/src/commands/init.command.ts b/src/commands/init.command.ts index e6ed5628..dac7eb3b 100644 --- a/src/commands/init.command.ts +++ b/src/commands/init.command.ts @@ -39,6 +39,7 @@ export function registerInitCommand(program: TopLevelCommand) { entries: [ { name: "README.md", content: readmeMd }, { name: ".gitignore", content: gitignore }, + { name: ".gitattributes", content: gitattributes }, { name: "kit", entries: [ @@ -140,6 +141,14 @@ const gitignore = `# terraform/terragrunt caches **.meta.json `; +const gitattributes = `# Force LF file endings for all text files +* text eol=lf + +# Denote all files that are truly binary and should not be modified. +*.png binary +*.jpg binary +`; + const kitReadmeMd = `# Your Collie Kit Build your own set of Collie [kit modules](https://landingzone.meshcloud.io/reference/kit-module.html) in this folder.