Skip to content

jiangchenyu199/vscode-git-gpg-signing

Repository files navigation

Git GPG Signing

为 VS Code 提供 Git 提交的 GPG 签名开关与密钥选择,无需在终端中手动配置。

用法:在源代码管理视图标题栏打开「…」菜单,进入「GPG 签名」子菜单,可执行启用/禁用签名或选择签名密钥。也可通过命令面板(Ctrl+Shift+P / Cmd+Shift+P)执行 Git: 启用 GPG 签名Git: 禁用 GPG 签名Git: 选择 GPG 签名密钥。启用签名后,扩展会将 VSCode 设置 git.enableCommitSigning 置为 true,此后在源代码管理中提交时将使用所选 GPG 密钥进行签名。

环境:本机要有 Git 和 GPG。Windows 建议装 Git for Windows(带 Git Bash)和 Gpg4win(带 gpg);macOS 用 brew install gnupg;Linux 装 gnupg。至少有一个能签名的私钥(没有就 gpg --full-generate-key)。

配置gitGpgSigning):

配置项 说明
applyToScope 作用域
gpgPath gpg 可执行文件路径
gitPath git 可执行文件路径
bashPath Windows 下 bash 路径

开发npm installnpm run compile,F5 调试。打包 VSIX:装好 @vscode/vsce 后在该目录执行 vsce package

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors