git-note
来源:互联网 发布:linux关闭selinux命令 编辑:程序博客网 时间:2024/05/17 07:54
git format problem
问题:
git pull
代码下来后,使用idea修改后,
git diff
查看时发现,多了^M(ASCII码的回车符‘\r’)的符号,因为gitLab服务器是linux系统(LF,换行符),开发环境是win10(CRLF,回车换行符),导致出现代码问题。
解决方案
AutoCRLF
提交时转换为LF,检出时转换为CRLF
git config --global core.autocrlf true
修改时,还是会有^M,代码不会整段被删除再添加,仅限于修改的部分。
参考资料
http://blog.csdn.net/wangweiqiang1325/article/details/52537627
http://www.cnblogs.com/sdgf/p/6237847.html
阅读全文
0 0
- Git Note
- git note
- git note
- GIT note
- git-note
- git note
- git-note
- git svn ssh note
- git - entry level note
- Git note --Basics
- Some note of git using
- [NOTE]查看git库来源
- Understanding Git Conceptually新手理解Git (Note)
- note
- note
- NOTE
- note
- Note
- List / Map / Collections方法
- oracle创建用户、表空间、授权
- 2.live555源码分析----服务端doEventLoop()函数分析
- 如何清除页面的图片缓存
- java缓存技术
- git-note
- Retrofit 网络请求
- error installing apk
- 作业3
- ubuntu16 安装RPM软件包
- 微服务构建
- Powerdesigner使用记录
- PAT乙级1027:打印沙漏(C++)
- 出口商贸易融资工具:出口票据贴现