android-studio - Android Studio 和 Git 提交错误

标签 android-studio git-commit

我在 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 :

您可以在状态栏中更改当前文件的行结束样式:

enter image description here

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.

关于android-studio - Android Studio 和 Git 提交错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36420251/

相关文章:

git - 压缩提交是否成为一种最佳实践(对于这个特定的工作流程)?

Git 提交样式 : All changed files at once or one at a time?

git - 进行 git 提交时出现 Vi 错误

java - 如何在 android studio 中从 mysql 数据库检索并显示用户详细信息?

android - Gradle 失败 : transformClassesWithDexForDebug with jdk 1. 8

Android studio 无法打开监视器(DDMS)

Android Studio - 无法通知项目评估监听器错误

git - 查看未推送到远程的本地提交的 git 更改/差异

Android Studio : String resources showing in design view, 不在模拟器中