Skip to content

Can't use vscode git commit when inside a devcontainer #10970

@elieobeid7

Description

@elieobeid7

I'm using Windows 11 latest version, VScode latest version, docker and doccker desktop, latest version. WSL2 docker integration

When I'm inside a vscode dev container, I can't use the VSCode git integration system to commit or for anything, if I try to commit, I get this error

2025-05-15 13:00:14.371 [info] > git for-each-ref --sort -committerdate --format %(refname)%00%(objectname)%00%(*objectname) [247ms]
2025-05-15 13:00:16.002 [info] > git status -z -uall [1882ms]
2025-05-15 13:01:07.007 [info] > git add -A -- . [1840ms]
2025-05-15 13:01:08.501 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - --signoff -S [1490ms]
2025-05-15 13:01:08.501 [info] error: cannot run ssh-keygen: No such file or directory
error: 
fatal: failed to write commit object

And it's very slow in general to pick up file changes, I tried doing

 git config --global commit.gpgsign false 

problem still there

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcontainersIssue in vscode-remote containers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions