Skip to content

Instantly share code, notes, and snippets.

@schmich
Last active May 13, 2016 03:00
Show Gist options
  • Save schmich/a4349b7a04bf0096159cae41766945c5 to your computer and use it in GitHub Desktop.
Save schmich/a4349b7a04bf0096159cae41766945c5 to your computer and use it in GitHub Desktop.
Signing git tags on Windows

Signing git tags on Windows

  • Download and install Gpg4win Vanilla (command-line only GPG tools)
  • Create or import an existing key in Windows
    • Create a new key
      • ...
    • Import an existing key
      • On origin system, gpg -a --export-secret-keys you@email.com > secret.key
      • Transfer secret.key to Windows, delete it from origin system
      • On Windows, run gpg --allow-secret-key-import --import secret.key
      • Create a directory link from where git expects your GPG key to where Gpg4win stores it: mklink /D %USERPROFILE%\.gnupg %APPDATA%\gnupg
  • Create and push a signed tag
    • git tag -s v1.0 -m "Release 1.0."
    • git push origin --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment