Skip to content
代码片段 群组 项目
未验证 提交 a66f93fd 编辑于 作者: Brendan Lynch's avatar Brendan Lynch 提交者: GitLab
浏览文件

Merge branch 'irisb-master-patch-06877' into 'master'

No related branches found
No related tags found
无相关合并请求
......@@ -278,14 +278,30 @@ git config --global gpg.program gpg2
If your GPG key is password protected and the password entry prompt does not appear,
add `export GPG_TTY=$(tty)` to your shell's `rc` file (commonly `~/.bashrc` or `~/.zshrc`)
### GPG failed to sign the data
### GPG fails to sign data
If your GPG key is password protected and you receive the error:
If your GPG key is password protected, and you receive one of the following errors:
```shell
```plaintext
error: gpg failed to sign the data
fatal: failed to write commit object
gpg: signing failed: Inappropriate ioctl for device
```
If the password entry prompt does not appear, add `export GPG_TTY=$(tty)` to your shell's `rc` file
(commonly `~/.bashrc` or `~/.zshrc`) and restart your terminal.
If the password entry prompt doesn't appear:
1. Open your shell's configuration file, commonly `~/.bashrc` or `~/.zshrc`, in a text editor.
1. Add the following line to the file:
```shell
export GPG_TTY=$(tty)
```
1. Save the file and exit the text editor.
1. Apply the changes. Choose one of the following:
- Restart your terminal.
- Run `source ~/.bashrc` or `source ~/.zshrc`.
NOTE:
The exact steps may vary depending on your operating system and shell configuration.
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册