Dev Container Plugin: Incorrect Git Config Location on macOS

Describe the Bug

The dev container plugin currently fails to properly configure Git within a development container on macOS.
This is because it attempts to copy the Git configuration from ~/.gitconfig, whereas on macOS, the standard location for this file is typically ~/.config/git/config.

See Git - git-config Documentation

This happens on the 1.0.13 dev container plugin version (also 1.0.12).

Steps to Reproduce

On a macos system, make sure the global git config file is at ~/.config/git/config by running git config --global --list --show-origin | head -1 | sed 's/^file://' | cut -d$'\t' -f1.
Then create a dev container.

Expected Behavior

The proper file should be synched to the container

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:55:16.443Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi @Ouri_Lipner, thank you for this bug report. We are working on fixing this.

Hi @Ouri_Lipner, we just released version 1.0.14 of the extension which supports that alternative path for the gitconfig file.

Wow that was quick! Thank you!

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.