From e7dba754eb7f97e7218515ea2af10c87b9387b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B5=A9?= <3116737282@qq.com> Date: Thu, 1 May 2025 11:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=AE=B9=E5=99=A8=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E6=97=B6=E8=87=AA=E5=8A=A8=E8=AE=BE=E7=BD=AE=20git=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8D=E5=92=8C=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.tf b/main.tf index 5d35853..d2bead8 100644 --- a/main.tf +++ b/main.tf @@ -73,6 +73,10 @@ EOF echo "SSH key pair created. Your public key is:" cat ~/.ssh/git.pub + + # 添加 git 全局配置 + git config set --global user.name "${data.coder_workspace_owner.me.name}" + git config set --global user.email "${data.coder_workspace_owner.me.email}" touch ~/.init_done fi