Files
README/a0_部署gitea.md
T
2026-01-22 13:10:25 +08:00

9 lines
432 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 配置 Git 凭据存储(适用于交互式环境)
```
git config --global credential.helper store
```
Git 会将你下一次输入的用户名和密码(或 Personal Access Token)明文保存到 ~/.git-credentials 文件中,格式如下:
```
https://<username>:<password_or_token>@github.com
```
之后,Git 在访问相同域名(如 github.com)时会自动读取这个文件中的凭据,不再提示输入。