I made a first git commit from inside an Android Studio project. It asked me to check for a CR option, i have done that, and it was successful but some files were left again in the Local Changes tab. Then I tried a second commit and it failed with the same error for all the left files:
0 files committed, 46 files failed to commit
Error:warning: CRLF will be replaced by LF in gradlew.bat. The file will have its original line endings in your working directory.
(Android Studio 1.5.1 on Ubuntu 14.04)
How can I solve the issue?
According to JetBrains's blog:
You can change the line ending style for the current file in the status bar:
or
You can also perform a bulk change. Just select a target file or a directory in the project view and choose new separator via Main Menu → File → Line Separator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With