Gitvimdiff设置

Tuesday, Dec 10, 2024 | 1 minute read | Updated at Tuesday, Dec 10, 2024

@
Gitvimdiff设置

Cut out summary from your post content here.

The remaining content of your post.

git vimdiff设置

git config diff.tool vimdiff
git config diftool.vimdiff.cmd=vim -d $LOCAL $REMOTE

git config alias.df difftool
git config alias.st status

git crlf 设置

// 提交时转换为LF,检出时转换为CRLF
git config --global core.autocrlf true   

// 提交时转换为LF,检出时不转换
git config --global core.autocrlf input   

// 提交检出均不转换
git config --global core.autocrlf false


// 拒绝提交包含混合换行符的文件 (一般设置为true)
git config --global core.safecrlf true   

// 允许提交包含混合换行符的文件
git config --global core.safecrlf false   

// 提交包含混合换行符的文件时给出警告
git config --global core.safecrlf warn

© 2016 - 2025 Caisong's Blog

🌱 Powered by Hugo with theme Dream.

About Me

大龄程序员,喜欢折腾各种环境部署、软件应用。

博客记录日常。