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