feat: add shell command to add your GPG key to .bashrc, otherwise the signing process will not work
This commit is contained in:
parent
79d5804969
commit
b7f25f1431
|
@ -80,6 +80,14 @@ You will need to tell Git about your key and have it sign new commits for you.
|
||||||
2. Type `git config --global user.signingkey <GPG KEY ID>`
|
2. Type `git config --global user.signingkey <GPG KEY ID>`
|
||||||
3. Type `git config --global commit.gpgsign true`
|
3. Type `git config --global commit.gpgsign true`
|
||||||
|
|
||||||
|
Finally, to add your GPG key to your .bashrc startup file, run the following command:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
[ -f ~/.bashrc ] && echo -e '\nexport GPG_TTY=$(tty)' >> ~/.bashrc
|
||||||
|
```
|
||||||
|
|
||||||
|
After that, reboot your system and you will be able to sign your commits.
|
||||||
|
|
||||||
---
|
---
|
||||||
> **Attribution**
|
> **Attribution**
|
||||||
> This guide is derived from [GitHub Docs](https://docs.github.com), used under CC-BY 4.0.
|
> This guide is derived from [GitHub Docs](https://docs.github.com), used under CC-BY 4.0.
|
||||||
|
|
Loading…
Reference in a new issue