# Dev Container Plugin: Incorrect Git Config Location on macOS

**URL:** <https://forum.cursor.com/t/dev-container-plugin-incorrect-git-config-location-on-macos/117587>\
**Category:** Bug Reports\
**Created:** [July 14, 2025, 8:37am UTC](https://forum.cursor.com/t/dev-container-plugin-incorrect-git-config-location-on-macos/117587 "2025-07-14T08:37:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ouri\_Lipner](https://avatars.discourse-cdn.com/v4/letter/o/82dd89/32.png) [@Ouri\_Lipner](https://forum.cursor.com/u/Ouri_Lipner)\
**Post date:** [July 14, 2025, 8:37am UTC](https://forum.cursor.com/t/dev-container-plugin-incorrect-git-config-location-on-macos/117587/1 "2025-07-14T08:37:45Z")

</div>

### 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](https://git-scm.com/docs/git-config#Documentation/git-config.txt-XDGCONFIGHOMEgitconfig)

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

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [July 14, 2025, 3:52pm UTC](https://forum.cursor.com/t/dev-container-plugin-incorrect-git-config-location-on-macos/117587/3 "2025-07-14T15:52:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [July 15, 2025, 6:54am UTC](https://forum.cursor.com/t/dev-container-plugin-incorrect-git-config-location-on-macos/117587/4 "2025-07-15T06:54:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ouri\_Lipner](https://avatars.discourse-cdn.com/v4/letter/o/82dd89/32.png) [@Ouri\_Lipner](https://forum.cursor.com/u/Ouri_Lipner)\
**Post date:** [July 15, 2025, 8:32am UTC](https://forum.cursor.com/t/dev-container-plugin-incorrect-git-config-location-on-macos/117587/5 "2025-07-15T08:32:16Z")

</div>

Wow that was quick! Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [August 6, 2025, 8:32am UTC](https://forum.cursor.com/t/dev-container-plugin-incorrect-git-config-location-on-macos/117587/7 "2025-08-06T08:32:32Z")

</div>

Closed on August 6, 2025, 8:32am UTC

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