Category: PHP, PHP, git, git

Windows uses CRLF (\r\n) lined endings while Linux uses LF (\n). In my case, these problems consisted of "empty" commits in which many files only had changes in line endings.

What this does is tell Git to only use LF line endings in all files where that is appropriate.

Now that Git knows what type of line endings we want, it is time to configure our editor.

Now that we have successfully configured our project, it is time to clean up all incorrect line endings that are left.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners