Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Use LF line endings for template files #29

Merged
merged 1 commit into from
Oct 3, 2020

Conversation

msmolens
Copy link
Contributor

@msmolens msmolens commented Oct 2, 2020

Add a .gitattributes file that forces text files in the template directory to have LF line endings when checking out the repository. This ensures that the published template uses LF line endings even when published from a Windows machine.

To apply the new attributes it may be necessary to run the following commands:

git rm --cached -r .
git reset --hard

Source: https://stackoverflow.com/questions/9976986/force-lf-eol-in-git-repo-and-working-copy/34810209#34810209

Fixes #21

Add a .gitattributes file that forces text files in the template
directory to have LF line endings when checking out the repository. This
ensures that the published template uses LF line endings even when
published from a Windows machine.

To apply the new attributes it may be necessary to run the following
commands:

    git rm --cached -r .
    git reset --hard

Source: https://stackoverflow.com/questions/9976986/force-lf-eol-in-git-repo-and-working-copy/34810209#34810209
@markerikson markerikson merged commit 9994e30 into reduxjs:master Oct 3, 2020
@markerikson
Copy link
Contributor

Thanks!

@msmolens msmolens deleted the template-uses-lf branch October 5, 2020 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent line endigs
2 participants