From d6b882be8557b77e61ce6d18c9cc2a2d1f25128d Mon Sep 17 00:00:00 2001 From: chicrobot Date: Thu, 22 Jan 2026 20:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20a0=5F=E9=83=A8=E7=BD=B2git?= =?UTF-8?q?ea.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a0_部署gitea.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/a0_部署gitea.md b/a0_部署gitea.md index f04488b..2ce8a56 100644 --- a/a0_部署gitea.md +++ b/a0_部署gitea.md @@ -6,4 +6,16 @@ Git 会将你下一次输入的用户名和密码(或 Personal Access Token) ``` https://:@github.com ``` -之后,Git 在访问相同域名(如 github.com)时会自动读取这个文件中的凭据,不再提示输入。 \ No newline at end of file +之后,Git 在访问相同域名(如 github.com)时会自动读取这个文件中的凭据,不再提示输入。 + +## 设置项目邮箱和名称 +当前项目 +``` +git config user.name "Name" +git config user.email "email@example.com" +``` +全局设置 +``` +git config --global user.name "Name" +git config --global user.email "email@example.com" +```