microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.7k stars 1.41k forks source link

Dev Container not persisting source code changes outside of container #1735

Open theonepichael opened 1 year ago

theonepichael commented 1 year ago

Situation: Opening an existing folder in dev container

None of the changes made to the source code in the dev container are persisted after container is stopped. That includes changed committed to Git. Where is the setting that enables this behavior?

fultonardo commented 1 year ago

Greetings!! I also made a Stack Overflow post about this with some additional details and code included :o)

https://stackoverflow.com/questions/76103324/how-do-i-export-code-changes-from-devcontainer-to-the-local-directory