Git
#工程化
Git 的 core.autocrlf
配置
true
: 提交时转换为LF
,检出时转换为CRLF
git config --global core.autocrlf true
input
: 提交时转换为 LF,检出时不转换
git config --global core.autocrlf input
false
: 提交检出均不转换
git config --global core.autocrlf false
git commit 模板
提交时显示 commit 模板
- 创建
.gitmessage
文件, 填写内容
- 创建
.gitconfig
文件, 填写映射
[commit]
template = ./.gitmessage
参考