解决 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/article/details/80824804 
版权声明:本文为博主原创文章,转载请附上博文链接!
解决 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  解决办法
		
1.在新项目中使用[ git add . ]时出现: warning: LF will be replaced by CRLF in ...... The file will have its ori ...
 - 解决git报错“The file will have its original line endings in your working directory”的方法
		
在执行命令 git commit --all -m '说明' 时报错“The file will have its original line endings in your working dir ...
 - Git提交时提示‘The file will have its original line endings in your working directory’
		
Git提交时提示'The file will have its original line endings in your working directory' Git出现错误 git add -A ...
 - 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 fil ...
 - 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 解决: G ...
 - The file will have its original line endings in your working directory.
		
在空仓库的情况下,add,出现一下问题 The file will have its original line endings in your working directory. 当报这个警告时是 ...
 - git 提交报错 : The file will have its original line endings in your working directory.
		
报错现象 git add . 的时候发现此报错 报错分析 看情况应该是不同系统对换行的识别不到位导致的 就常识来说文件是在windows下生成的所以换行和 linux 确实不同可能是因为这个导致的 ...
 - 解决使用git出现 The file will have its original line endings in your working directory
		
执行以下命令即可解决 git rm -r --cached . git config core.autocrlf false git add . . 代表当前目录
 - warning: LF will be replaced by CRLF in ***. The file will have its original line endings in your working directory.
		
git config --global core.autocrlf false
 
随机推荐
- 第十四周(OOP版电子词典)
			
/* *copyright(c) 2015,烟台大学计算机学院 *All rights reserved. *文件名:第十四周(OOP版电子词典) *作者:王忠 *完毕日期:2015.6.10 *版本 ...
 - Hdu5303    Delicious Apples        贪心
			
题目链接: HDU5303 题意: 有一条环形的长为L的路,仓库在位置0处, 这条路上有n棵苹果树,给出每棵苹果树的位置和苹果数量, 问用 一次最多能装K个苹果的篮子 把这条路上全部苹果採回仓库最 ...
 - WebView与JavaScript交互--Android
			
转载请注明出处: http://blog.csdn.net/forwardyzk/article/details/46819925 在工作中,有一个这种需求,须要用到WebView与javascri ...
 - [LeetCode][Java] Trapping Rain Water
			
题意: Given n non-negative integers representing an elevation map where the width of each bar is 1, co ...
 - 负margin使用注意的一个问题
			
在项目实力中经经常使用到负margin 如: <div id="test"> <ul> <li>子元素1</li> <li&g ...
 - 【POJ 2054】 Color a Tree
			
[题目链接] http://poj.org/problem?id=2054 [算法] 贪心 [代码] #include <algorithm> #include <bitset> ...
 - 洛谷P1726 上白泽慧音(Tarjan强连通分量)
			
P1726 上白泽慧音 题目描述 在幻想乡,上白泽慧音是以知识渊博闻名的老师.春雪异变导致人间之里的很多道路都被大雪堵塞,使有的学生不能顺利地到达慧音所在的村庄.因此慧音决定换一个能够聚集最多人数的村 ...
 - codevs1486愚蠢的矿工(树形dp)
			
1486 愚蠢的矿工 时间限制: 1 s 空间限制: 128000 KB 题目描述 Description Stupid 家族得知在HYC家的后花园里的中央花坛处,向北走3步,向西走3步, ...
 - [Swift通天遁地]八、媒体与动画-(9)快速实现复合、Label、延续、延时、重复、缓冲、弹性动画
			
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs. ...
 - notepad + +使用步骤
			
原文地址:https://blog.csdn.net/so_geili/article/details/79317001#一-安装notepad 一. 安装notepad + + notepad+ ...