git出现“The file will have its original line endings in your working directory”错误

一、现象:

git add *时出现如下现象:

The file will have its original line endings in your working directory

解决:

Gitshell中输入如下命令解决:

git config --global core.autocrlf false

原文地址:https://www.cnblogs.com/igoodful/p/11470370.html

时间: 2024-12-07 11:03:08

git出现“The file will have its original line endings in your working directory”错误的相关文章

windows10下git报错warning: LF will be replaced by CRLF in readme.txt. The file will have its original line endings in your working directory.

window10下使用git时 报错如下: $ git add readme.txtwarning: LF will be replaced by CRLF in readme.txt.The file will have its original line endings in your working directory. 意思大概是:LF(换行,Line Feed)将会被CRLF(回车换行,CarriageReturn)替代. 该文件将在工作目录中具有其原始行尾. 报这个警告时是由于文件夹

[git] -- warning: LF will be replaced by CRLF in app/app.iml. The file will have its original line endings in your working directory.

遇到这个错误,因为是git的换行符检查功能.之前代码是在MAC下,后来放在windows系统下,git add .的时候报这个错误. core.safecrlf git 提供了一个换行符检查功能(core.safecrlf),可以在提交时检查文件是否混用了不同风格的换行符. false --- 不做任何检查: warn --- 在提交的时候检查并报告: true --- 在提交时检查,如果发现混用则拒绝提交: 建议使用最严格的true选项. core.autocrlf 如果用两台不同系统的电脑写

解决 The file will have its original line endings in your working directory

首先出现这个问题主要原因是:我们从别人github地址上通过git clone下载下来,而又想git push到我们自己的github上,那么就会出现上面提示的错误信息 此时需要执行如下代码: git rm -r --cached . git config core.autocrlf false git add . . 代表当前目录 --------------------- 作者:badly1226 来源:CSDN 原文:https://blog.csdn.net/liereli/articl

The file will have its original line endings in your working directory.

在空仓库的情况下,add,出现一下问题 当报这个警告时是由于文件夹远程不存在,但是不影响提交warning: LF will be replaced by CRLF in KashuoService/res/values-w820dp/dimens.xml. 换行方式不统一

如何理解git checkout -- file和git reset HEAD -- file

http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/001374831943254ee90db11b13d4ba9a73b9047f4fb968d000 首先需要知道工作区(working diretory)和暂存区(Stage)这两个概念.工作区的该概念不仅包含你实际操作.更改的文件还应当包括当前修改但未add存入暂存区的文件变化信息,暂存区的作用则是临时存储文件的变化信息,在gi

win8/win7中使用Git Extensions PuTTy模式提交时 git-credential-winstore.exe": No such file or directory 错误解决方案

参考:http://www.cnblogs.com/hlizard/p/3627792.html 报错类似以下错误 \"F:/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\" get: "F:/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe": No such file or directory 解决方案

[转]Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法

参考资料: http://sheshui.me/articles/git-quickly-tutorial-20120517 http://stackoverflow.com/questions/9282632/git-index-lock-file-exists-when-i-try-to-commit-but-cannot-delete-the-file 我的说明: 我操作的是ubuntu环境.window远程 1 若在window下远程打开操作窗口(不是console),进入.git目录删

Unable to create ‘.git/index.lock‘: File exists

Unable to create '.git/index.lock': File exists 分类: Git&SVN |2014-03-03 14:10 |1231人阅读 Git – fatal: Unable to create '/.git/index.lock': File exists. fatal: Unable to create '/path/my_proj/.git/index.lock': File exists. If no other git process is cur

EXCEPTION:FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS

FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS Hi, Today I will share you my other experience using git control system, it happened to me after I’ve created a branch, when adding my changes to remote or even committed my file I’ve started to s