更新 a0_部署gitea.md

This commit is contained in:
chicrobot committed 2026-01-22 20:22:53 +08:00
1 parent 94765e7167
commit d6b882be85
1 file changed
+13 -1
+13 -1
View File
@@ -6,4 +6,16 @@ Git 会将你下一次输入的用户名和密码(或 Personal Access Token)
``` ```
https://<username>:<password_or_token>@github.com https://<username>:<password_or_token>@github.com
``` ```
之后,Git 在访问相同域名(如 github.com)时会自动读取这个文件中的凭据,不再提示输入。 之后,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"
```