Skip to content

Commit

Permalink
feat: add postStartCommand in devcontainer for git
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharushan committed Aug 12, 2023
1 parent b524fe7 commit 03cd57c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

0 comments on commit 03cd57c

Please sign in to comment.