我在 Android Studio 项目中进行了第一次 git 提交。 它要求我检查 CR 选项,我已经这样做了,并且成功了,但一些文件再次留在“本地更改”选项卡中。 然后我尝试了第二次提交,但它失败了,所有左侧文件都出现相同的错误:
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.
(Ubuntu 14.04 上的 Android Studio 1.5.1)
如何解决这个问题?
最佳答案
根据JetBrains's blog :
您可以在状态栏中更改当前文件的行结束样式:
或
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.
关于android-studio - Android Studio 和 Git 提交错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36420251/