My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Git line ending errors

Emil Moe's photo
Emil Moe
·Aug 4, 2016

When ever I'm commiting something to git it gives me the warning

"The file will have its original line endings in your working directory"

How can I avoid this?

My setup is a Linux Debian VM (VirtualBox) hosted on a Windows 10 machine. I develop in PHPStorm from my Windows and all files are in a shared folder that the VM has access to. I commit my files from SSH on my VM.