From 0d0431fd8459d4f7eb05969d67d47d62dd454b19 Mon Sep 17 00:00:00 2001 From: chicrobot Date: Thu, 22 Jan 2026 13:10:25 +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/a0_部署gitea.md b/a0_部署gitea.md index 4d19bf9..f04488b 100644 --- a/a0_部署gitea.md +++ b/a0_部署gitea.md @@ -1,4 +1,9 @@ ## 配置 Git 凭据存储(适用于交互式环境) ``` git config --global credential.helper store -``` \ No newline at end of file +``` +Git 会将你下一次输入的用户名和密码(或 Personal Access Token)明文保存到 ~/.git-credentials 文件中,格式如下: +``` +https://:@github.com +``` +之后,Git 在访问相同域名(如 github.com)时会自动读取这个文件中的凭据,不再提示输入。 \ No newline at end of file