Describe the Bug
When I work inside a Dev Container opened with anysphere.remote-containers v1.0.17, every git commit (invoked via Cursor’s Source Control UI) fails:
git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
fatal: cannot exec ‘/opt/homebrew/bin/gpg’: No such file or directory
error: gpg failed to sign the data:
(no gpg output)
fatal: failed to write commit object
The container inherits my global ~/.gitconfig, which specifies a host-only GPG path (/opt/homebrew/bin/gpg). Because that binary is absent inside the container, Git aborts and Cursor cannot create commits.
Steps to Reproduce
- On macOS host, ensure global GPG-signed commits are enabled (see .gitconfig excerpt below).
- Open any project in a Dev Container using anysphere.remote-containers.
- In Cursor’s Source Control panel (or terminal), run Commit.
- Commit immediately fails with the error shown above.
Expected Behavior
git commit should succeed and be signed with GPG (or fall back gracefully) inside the Dev Container, just as it does on the host.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
版本: 1.2.4
提交: 1.99.3
日期: a8e95743c5268be73767c46944a71f4465d05c90
Electron: 2025-07-10T16:53:59.659Z
ElectronBuildId: 34.5.1
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.19.0
OS: 13.2.152.41-electron.0
Additional Information
~/.gitconfig (on host)
[filter “lfs”]
required = true
clean = git-lfs clean – %f
smudge = git-lfs smudge – %f
process = git-lfs filter-process
[user]
name = Jacky
email = [email protected]
signingkey = ************
[commit]
gpgsign = true
[url “ssh://[email protected]/”]
insteadOf = https://github.com/
[pull]
rebase = true
[gpg]
program = /opt/homebrew/bin/gpg # ← not present inside container
Does this stop you from using Cursor
Yes - Cursor is unusable