From a3d1b6afc07310f5e682de498630925c810003d2 Mon Sep 17 00:00:00 2001 From: chicrobot Date: Thu, 22 Jan 2026 20:32:40 +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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/a0_部署gitea.md b/a0_部署gitea.md index 2ce8a56..273a971 100644 --- a/a0_部署gitea.md +++ b/a0_部署gitea.md @@ -19,3 +19,11 @@ git config user.email "email@example.com" git config --global user.name "Name" git config --global user.email "email@example.com" ``` +## 当账户与文件夹用户id不一致时(如部署在Docker中且目录通过-v挂载) +``` +git config --global --add safe.directory /projectName +``` +或 "*" 关闭所有目录的安全检查 +``` +git config --global --add safe.directory "*" +``` \ No newline at end of file