CXT - Enjoy Life | 生活、技术、交友、分享 CXT - Enjoy Life | 生活、技术、交友、分享
  • 首页
  • 特色专题
    • 一键网络重装系统 - 魔改版(适用于Linux / Windows)
    • 精英IDC计划 - 千万IDC计划(从入门到跑路)
    • CXT裸机系统部署平台(自定义安装任意系统)
    • OpenWRT-Virtualization-Servers
  • 分类目录
    • 站点公告
    • 技术分享
    • 生活感悟
  • 更多(More)
    • 浏览记录(Historical-Record)
    • 支付捐赠(Payment-Donation)
    • 隐私政策(Privacy-Policy)
    • 服务状态(Server-Status)
    • 友情链接(Link)
    • 联系我们(Contact-US)
    • 关于我们(About-Me)
Home › 技术分享 › This different contains a change in line endings from' lf' to' crlf'.
  • 0

This different contains a change in line endings from' lf' to' crlf'.

CXT
March 9, 2025
1,368 views

Introduce

Github Desktop prompt: "This different contains a change in line endings from' lf' to' crlf'."

This diff contains a change in line endings from ‘LF’ to ‘CRLF’

Github提示:"此差异包含行尾从' LF '到' CRLF '的更改。"

Solution

You should set your git config to have the autocrlf option set, so lines are not comited as crlf. Run this on the command line:

您应该将git配置设置为autocrlf选项,这样行就不会被指定为crlf。在命令行上运行以下命令:

git config --global core.autocrlf true

This will make git handle line endings in a much better way. It will also, annoyingly, make git complain a bunch, so you’ll also want to turn off the complaints:

这将使git以更好的方式处理行尾。令人恼火的是,它还会让git抱怨个不停,所以你也想关掉这些抱怨:

git config --global core.safecrlf false

You can open you git configuration file and check what settings are active currently with

您可以打开git配置文件,检查当前哪些设置是活动的

git config --global --edit

It’s also possible to skip the global settings if you want other projects to have other settings.

如果您希望其他项目有其他设置,也可以跳过全局设置。

Summary

Now your Github Desktop submission code should be normal.

现在你的Github Desktop提交代码应该正常。

This different contains a change in line endings from' lf' to' crlf'.-CXT - Enjoy Life | 生活、技术、交友、分享
Github Desktop
0

从原版Debian全新安装Proxmox-VE虚拟化平台教程

Previous

Global Public DNS List(全球DNS大全)

Next

文章目录

Recent Posts

  • 飞牛FnOS 0day漏洞导致服务器被攻击,数据异常,已使用一个月前的备份数据恢复。已迁移离开飞牛生态,转为LISK工具搭建。
  • CXT来招聘了:我们在构建 AI 时代的“信任协议”,欢迎投递。
  • OpenWRT WIFI7启用MLD模式,优化多频同时连接
  • 你的技术伙伴,是在构筑未来,还是在埋下地雷?
  • Proxmox VE 模板磁盘大小错误修改后的恢复指南

Related posts

GORM - 终于添加批量操作功能了

GORM - 终于添加批量操作功能了

September 17, 2020
177,749 0
超级详细的Linux 9图文安装教程(适用于RHEL 9 / Rocky 9 / CentOS 9 / Alma 9 / Oracle 9)

超级详细的Linux 9图文安装教程(适用于RHEL 9 / Rocky 9 / CentOS 9 / Alma 9 / Oracle 9)

December 29, 2024
5,755 1
【精英IDC计划】一键网启安装Proxmox VE 6.x 菜鸟小白版

【精英IDC计划】一键网启安装Proxmox VE 6.x 菜鸟小白版

November 15, 2020
2,218,961 7
【内测邀请】代号JuCent,首款Golang开发,国产全平台即时通讯软件。可自行搭建托管的即时通讯软件(支持Linux/Windows/Web网页端/Android/iOS/MacOS等)

【内测邀请】代号JuCent,首款Golang开发,国产全平台即时通讯软件。可自行搭建托管的即时通讯软件(支持Linux/Windows/Web网页端/Android/iOS/MacOS等)

September 15, 2020
129,265 0

简介 CXT - Enjoy Life

CXT - Enjoy Life | 生活、技术、交友、分享 - 自天佑之,吉无不利

网站导航

首页 特色专题 一键网络重装系统 - 魔改版(适用于Linux / Windows) 精英IDC计划 - 千万IDC计划(从入门到跑路) CXT裸机系统部署平台(自定义安装任意系统) OpenWRT-Virtualization-Servers 分类目录 站点公告 技术分享 生活感悟 更多(More) 浏览记录(Historical-Record) 支付捐赠(Payment-Donation) 隐私政策(Privacy-Policy) 服务状态(Server-Status) 友情链接(Link) 联系我们(Contact-US) 关于我们(About-Me)

友情链接

CXT | 自天佑之 吉无不利 润隍科技
Copyright © 2026 CXT - Enjoy Life | 生活、技术、交友、分享. Designed by nicetheme.
  • 首页
  • 特色专题
    • 一键网络重装系统 - 魔改版(适用于Linux / Windows)
    • 精英IDC计划 - 千万IDC计划(从入门到跑路)
    • CXT裸机系统部署平台(自定义安装任意系统)
    • OpenWRT-Virtualization-Servers
  • 分类目录
    • 站点公告
    • 技术分享
    • 生活感悟
  • 更多(More)
    • 浏览记录(Historical-Record)
    • 支付捐赠(Payment-Donation)
    • 隐私政策(Privacy-Policy)
    • 服务状态(Server-Status)
    • 友情链接(Link)
    • 联系我们(Contact-US)
    • 关于我们(About-Me)
  • Linux
  • PVE
  • Server
  • Proxmox-VE
  • Proxmox
  • 系统镜像
  • Windows
  • ISO
  • DD
  • CentOS

CXT

Administrator
82
Posts
0
Comments
123
Likes