Copied to clipboard!

.gitattributes Generator

Configure and normalize line endings for cross-platform development.

Presets

Add Custom Rule

Current Rules

.gitattributes Preview


                

How to Apply

1

Create File

Create a file named .gitattributes in the root of your project repository.

2

Paste Code

Copy the generated configuration on the right and paste it into the file.

3

Renormalize

Run the following commands in your terminal to apply the changes to tracked files:

git add --renormalize .
git commit -m "Normalize line endings"