永久存储 git 凭据并使用 Ubuntu 中的密钥库加密

pgm*_*ank 14 encryption password git

使用以下命令存储 git 凭据:

git config credential.helper store
Run Code Online (Sandbox Code Playgroud)

将它们以纯文本未加密的形式存储在~/.git-credentials.

MacOSWindows 中GitHub Help建议使用分别使用osxkeychain和加密您的凭据的密钥库wincred。然而,在 Linux 中没有提及如何加密您的 git 凭据。你知道如何做到这一点吗?