Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt to choose gpgsign key on setup #1

Open
6 tasks
DrSensor opened this issue Jul 13, 2021 · 0 comments
Open
6 tasks

Prompt to choose gpgsign key on setup #1

DrSensor opened this issue Jul 13, 2021 · 0 comments
Labels
enhancement New feature or request meta A group or collection of issues

Comments

@DrSensor
Copy link
Owner

Implementation

  • Multiselect which operation to use gpgsign
git config push.gpgsign if-asked
git config commit.gpgsign true
git config tag.gpgsign true
  • Select signingkey from list-secret-keys
gpg --list-secret-keys --keyid-format long
git config user.signingkey 0123346789ABCDEF
git config user.name Spam Killer
git config user.email spamkiller@dispossable.email

Usage

  • Automatic from url or path
git setup https://github.com/cli/cli

# or for existing repo
git setup

# works with multiple repos too
git setup ~/Projects/OSS/{ repo1, repo2 }
  • Manual on specific branches and/or tags
git setup --gpgsign hotfix/big-bug feature/branch
  • Support wildcards (handy for tags)
git setup --signingkey 'v3.0.0-[alpha|beta].*'
  • --gpgsign and --signingkey should be the same (to avoid confusion)
@DrSensor DrSensor added enhancement New feature or request meta A group or collection of issues labels Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request meta A group or collection of issues
Projects
None yet
Development

No branches or pull requests

1 participant