gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 07:24:10 40 4
gpt4 key购买 nike

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

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com