microsoft / microsoft/vscode

.gitignore_global doesn't work in devcontainers

Open
#325,947 1 comment 0 reactions 1 assignee Claimed by @chrmarti View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

`~/.gitignore_global` (defined in your host machine) doesn't work in devcontainers.

All the existing workarounds (like mounts) are terrible and they add a lot of complexity / possible bugs to something that should be straightforward and that should work out of the box for all developers in the team.

Another issue that adds more complexity is that VS Code copies the `~/.gitconfig` but it doesn't copy `~/.gitignore_global`, so all the paths defined inside `~/.gitconfig` are broken in the devcontainer.

VS Code should at least copy `~/.gitignore_global` in the dev containers as it already does for `~/.gitconfig`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.