Android(安卓)Studio完美解决 you are about to commit crlf line separators,warning: CRLF will be replaced by
16lz
2021-01-24
在使用Git的时候你可能会遇到
you are about to commit crlf line separators...
或者
warning: CRLF will be replaced by LF in...
关于CRLF
和LF
的问题就不赘述了,关键是发现了一个简单粗暴的解决办法!!
解决办法
出现这个问题之后文件是commit不了的,打开文件,然后在右下角会有编码UTF-8什么的,对,没错,直接点击CRLF,然后选择LF即可,window反之选CRLF
然后像正常一样commit即可。
如果,如果commit的时候出现
On branch masterYour branch is up-to-date with 'origin/master'.nothing to commit, working tree clean
意思是跟之前的版本一样,也很简单,随便改一下文件内容,commit即可。
更多相关文章
- android 修改窗体标题的字体式样和…
- ArcGIS API for Android(安卓)案例教程 4
- Android(安卓)Resource的使用和介绍
- [置顶] Eclipse工程转换为Android(安卓)Studio工程
- 2011年Android(安卓)Binder机制学习笔记之一
- android 数据存储之 读写文件
- 初识 Android(安卓)Native Development Kit (NDK)
- Android(安卓)M 差分包的制作流程
- Android(安卓)8.1 开机流程分析(1)