Write a .gitattributes file
Write a .gitattributes file that normalises line endings, configures diff drivers for binary assets, and sets merge strategies for lockfiles.
Preview
Copy prompt
Write a .gitattributes file tailored for a [Language / Tech stack] project. Configure line ending normalisation so shell scripts and code files always use LF while Windows-specific files use CRLF. Add diff driver configurations for minified JavaScript and CSS files so git diff shows them as binary rather than flooding the diff output. Set merge=ours strategy for auto-generated lockfiles. Add linguist-vendored and linguist-generated overrides for third-party and generated files so they are excluded from repository language statistics and code review diffs.
More
Git & Version Control
Prompts
