devcontainer: reuse host git identity

so git never prompts for user.name / user.email
This commit is contained in:
djmil 2026-06-03 11:39:07 +00:00
parent 8e3a9f2cbd
commit 1054f3fd6b

View File

@ -52,8 +52,10 @@
},
// Reuse host Claude config (auth, settings) no re-login needed inside container.
// Reuse host git identity so git never prompts for user.name / user.email.
"mounts": [
"source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind,consistency=cached"
"source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind,consistency=cached",
"source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached"
],
// Forward the default HTTP port so `make run` is reachable from the host.