Open rafaelstz opened 6 years ago
Ok, here is how I fixed the issue, I had to convert all files in the project directory:
brew install dos2unix # Installs dos2unix Mac
find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
sudo apt-get install -y dos2unix # Installs dos2unix Linux
sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Make sure that you're using on your Windows your git configured with this:
git config --global core.autocrlf input
This will instruct git to always commit text files with Linux line ending (\n
).
@rafaelstz You saved my day. Helpful. You know I spent 1 day for this. Thanks.
@rafaelstz You saved my day too.
Ok, here is how I fixed the issue, I had to convert all files in the project directory:
Mac
brew install dos2unix # Installs dos2unix Mac find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Linux
sudo apt-get install -y dos2unix # Installs dos2unix Linux sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Make sure that you're using on your Windows your git configured with this:
git config --global core.autocrlf input
This will instruct git to always commit text files with Linux line ending (
\n
).
Success, it worked perfectly for me. I was working on a Windows and I started using mac.
Ok, here is how I fixed the issue, I had to convert all files in the project directory:
Mac
brew install dos2unix # Installs dos2unix Mac find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Linux
sudo apt-get install -y dos2unix # Installs dos2unix Linux sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Make sure that you're using on your Windows your git configured with this:
git config --global core.autocrlf input
This will instruct git to always commit text files with Linux line ending (
\n
).
this saved my life... i wasted like 2-3 days in solving this problem. thankyou for this solution
Ok, here is how I fixed the issue, I had to convert all files in the project directory:
Mac
brew install dos2unix # Installs dos2unix Mac find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Linux
sudo apt-get install -y dos2unix # Installs dos2unix Linux sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Make sure that you're using on your Windows your git configured with this:
git config --global core.autocrlf input
This will instruct git to always commit text files with Linux line ending (
\n
).
This saved my life tooo
Ok, here is how I fixed the issue, I had to convert all files in the project directory:
Mac
brew install dos2unix # Installs dos2unix Mac find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Linux
sudo apt-get install -y dos2unix # Installs dos2unix Linux sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Make sure that you're using on your Windows your git configured with this:
git config --global core.autocrlf input
This will instruct git to always commit text files with Linux line ending (
\n
).
you are real Life Saver
Thank you the truth this works very well a real life saver
Great answer, thanks!
Ok, here is how I fixed the issue, I had to convert all files in the project directory:
Mac
brew install dos2unix # Installs dos2unix Mac find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Linux
sudo apt-get install -y dos2unix # Installs dos2unix Linux sudo find . -type f -exec dos2unix {} \; # recursively removes windows related stuff
Make sure that you're using on your Windows your git configured with this:
git config --global core.autocrlf input
This will instruct git to always commit text files with Linux line ending (
\n
).
Thanks brother. You are truly lifesaver.
I've just made setup of env and a project. When running CURL command to init I get: