From 88e36af2bb0e0dbc0d36ce0e1de1cb398c053da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E9=83=BD=E8=A1=8C?= Date: Sat, 25 Feb 2023 06:18:23 +0000 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=20git=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 1ef8b70..94950c4 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,15 @@ # 使用 +```shell +# 设置用户名 +git config --global user.name "你的名字" +# 设置邮箱 +git config --global user.email "你的邮箱" +# 拒绝提交包含混合换行符的文件 +git config --global core.safecrlf true +# 提交时转换为LF,检出时不转换 +git config --global core.autocrlf input +``` + 在项目目录下执行 `gcz` 按提示操作。 \ No newline at end of file