Skip to content
Discussion options

You must be logged in to vote

this isn’t related to the repo being public or private. The commit is failing locally before Git even reaches GitHub.

The main error is:

gpg: signing failed: Inappropriate ioctl for device

Basically, GPG is trying to ask for your key’s passphrase, but the VS Code container can’t open the prompt properly.

Also, creating multiple keys won’t really fix it, especially if the private key was created outside the container and isn’t available inside it.

If you don’t actually need signed commits, the easiest fix is:

git config --local commit.gpgsign false
git commit -m "deleted settings.json"
git push

If you do need commit signing, try this inside the VS Code terminal:

export GPG_TTY=$(tty)
echo '

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hkam7
Comment options

Answer selected by hkam7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, source:ui Discussions created via Community GitHub templates
2 participants