Fix issue CRLF will be replaced by LF warning in git when run git add macOS

🛒 B-Online Store

Premium Magento 2 Extensions & Services

Enhance your e-commerce store with high-quality extensions and expert Magento development services. Trusted by thousands of merchants worldwide!

💬 WhatsApp Button ⚡ Flash Sale 🏷️ Product Labels 🌐 Translation Suite
🔥 UP TO 71% OFF Limited Time!
⭐ Thousands of Merchants 🛡️ Quality Guaranteed ⚡ Instant Download

Add the following to your .gitattributes file from your terminal

echo "* text=auto" >>.gitattributes

install dos2unix in your macOS

brew install dos2unix

if you don’t have brew in your mac you can visit this article Install Homebrew · Mac

on current project directory that has this issue execute this command:

find . -type f -print0 | xargs -0 dos2unix