1

I have this problem, but when using SSH remote development on an actually remote machine (no WSL) and I need to be able to use the GUI commit button.

From what I have read, the culprit to the GPG not prompting for passphrase is the fact that VS Code uses git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - -S to commit stuff. If the --quiet option is removed, gpg asks for the passphrase.

How do modify the git command VS Code uses?

1 Answer 1

0

Try with:

  1. Open VS Code settings by clicking on the gear icon in the lower-left corner and selecting "Settings."
  2. In the search bar, type "git config" to filter the settings.
  3. Click on "Edit in settings.json" to open the settings file.
  4. Add the following configuration to the file:
  "git.config": {                                                                                                                                                                                       
    "commit.quiet": false                                                                                                                                                                               
  }   
Sign up to request clarification or add additional context in comments.

1 Comment

Unknown settings. Does not change anything. How did you come up with this solution?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.