Ask HN: Line Ending hassle

1 points by akulbe ↗ HN
I know this is probably a novice mistake, but this is a constant source of frustration.

PS C:\Users\ms\chef-repo\cookbooks\my_cookbook> git add .

warning: LF will be replaced by CRLF in metadata.rb.

I've switched from Mac to Windows. How do I avoid this hassle? I don't want to commit CRLF, when the target is always Linux.

I'm generating the cookbook on Windows, but like mentioned, it's always going to be for Linux.

How do I ensure that in the end it's LF and not CRLF?

I'm using VS Code for my editor, if that matters.

git config --get core.autocrlf returns "true"

I'm trying to avoid needing to do everything in a Linux VM, if I can help it.

Thanks in advance.

0 comments

[ 368 ms ] story [ 2928 ms ] thread

No comments yet.