From 03cd57ce239cb4766597c66825ef3a38f04ce7bd Mon Sep 17 00:00:00 2001 From: Tharushan Date: Sat, 12 Aug 2023 15:20:10 +0000 Subject: [PATCH] feat: add postStartCommand in devcontainer for git --- .devcontainer/devcontainer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3126573..e166488 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -81,5 +81,6 @@ // Uncomment the next line if you want to keep your containers running after VS Code shuts down. // "shutdownAction": "none", // Uncomment the next line to run commands after the container is created. - "postCreateCommand": "cat .devcontainer/bashrc.override.sh >> ~/.bashrc" -} + "postCreateCommand": "cat .devcontainer/bashrc.override.sh >> ~/.bashrc", + "postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}" +} \ No newline at end of file