Skip to content

.gitconfig not copied to remote container #6124

Closed

Description

I'm using devcontainers with Docker on Windows, according to the documentation at https://code.visualstudio.com/docs/remote/containers#_sharing-git-credentials-with-your-container it says .gitconfig is copied from the host, this does not seem to be the case when using Git for Windows at least which stores .gitconfig in C:\Users\<username>

  • VSCode Version: 1.63.2
  • Local OS Version: Windows 10.0.19044
  • Remote OS Version: mcr.microsoft.com/vscode/devcontainers/ruby:0-3
  • Remote Extension/Connection Type: Docker

Steps to Reproduce:

  1. Run inside a devcontainer
  2. .gitconfig is missing

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

containersIssue in vscode-remote containersinfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions