What problem does it solve?
This Skill solves the common and frustrating problem of inconsistent line endings in Git repositories, which can lead to unexpected errors, massive diffs, and merge conflicts across different operating systems.
Core Features & Use Cases
- Cross-Platform Compatibility: Ensures your code works seamlessly whether developed on Windows, macOS, or Linux.
- Configuration Guidance: Provides clear, actionable steps for configuring Git's line ending behavior (
core.autocrlf, core.eol, core.safecrlf).
.gitattributes Mastery: Guides you in creating and utilizing .gitattributes files for explicit, repository-wide control over line endings.
- Troubleshooting: Helps diagnose and fix common issues like shell scripts failing to execute or every line appearing changed in Git diffs.
- Use Case: A team with developers on Windows and macOS is collaborating on a project. Without proper line ending configuration, shell scripts might fail on macOS, and diffs could show every file as modified. This Skill provides the exact commands and
.gitattributes rules to prevent these issues, ensuring consistent LF line endings for scripts and cross-platform compatibility.
Quick Start
Configure your Git environment to handle line endings correctly for cross-platform development.