{
  "id": 1430572,
  "title": "How to Standardize Line Endings in Git Without Committing `.gitattributes`",
  "url": "https://urgent.news/2026/08/17/how-to-standardize-line-endings-in-git-without-committing",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-17T06:02:23.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/vast-cow/how-to-standardize-line-endings-in-git-without-committing-gitattributes-1k29"
  },
  "original_language": "en",
  "account": null,
  "summary": "When working with Git across different operating systems, dealing with line ending differences between CRLF (Windows) and LF (Linux/macOS) can be a common issue. A typical solution involves adding a .gitattributes file to the repository to define line-ending rules. However, there are situations where you may want to avoid adding .gitattributes to the repository, standardize line endings only in your own environment, or apply the same rules across multiple repositories. Git allows you to achieve this by configuring settings for specific repositories or globally, without committing .gitattributes. This can be done by using .git/info/attributes for repository-specific settings or setting git config --global core.attributesFile for a global configuration applicable to all your Git environments.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}