Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio and Git commit error

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?

like image 682
GPack Avatar asked Oct 18 '22 12:10

GPack


1 Answers

According to JetBrains's blog:

You can change the line ending style for the current file in the status bar:

enter image description here

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 → FileLine Separator.

like image 169
Shayan Amani Avatar answered Oct 21 '22 22:10

Shayan Amani