Skip to content

create .gitattributes to handle EOL#1

Open
mle2718 wants to merge 1 commit intoNEFSC:mainfrom
mle2718:main
Open

create .gitattributes to handle EOL#1
mle2718 wants to merge 1 commit intoNEFSC:mainfrom
mle2718:main

Conversation

@mle2718
Copy link
Member

@mle2718 mle2718 commented Feb 18, 2022

If team members are developing in *nix, windows, and mac, line endings can be a problem.

Two possible fixes are:

  1. edit every user's users git-config https://stackoverflow.com/questions/2825428/why-should-i-use-core-autocrlf-true-in-git, or
  2. Handle in the repository by setting everything in the repo to LF, while allowing the Windows users to use CRLF when developing locally,

further reading:
https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/

@mle2718
Copy link
Member Author

mle2718 commented Jun 3, 2022

@DChevrier1 --what do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant