更新 a0_部署gitea.md

This commit is contained in:
chicrobot committed 2026-01-22 13:10:25 +08:00
1 parent fec1c22b48
commit 0d0431fd84
1 file changed
+6 -1
+6 -1
View File
@@ -1,4 +1,9 @@
## 配置 Git 凭据存储(适用于交互式环境) ## 配置 Git 凭据存储(适用于交互式环境)
``` ```
git config --global credential.helper store git config --global credential.helper store
``` ```
Git 会将你下一次输入的用户名和密码(或 Personal Access Token)明文保存到 ~/.git-credentials 文件中,格式如下:
```
https://<username>:<password_or_token>@github.com
```
之后,Git 在访问相同域名(如 github.com)时会自动读取这个文件中的凭据,不再提示输入。