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" +```