https://github.com/allwelldotdev/test-signing-commits
This is a test repo to learn how to sign commits.
https://github.com/allwelldotdev/test-signing-commits
git github learning
Last synced: about 1 month ago
JSON representation
This is a test repo to learn how to sign commits.
- Host: GitHub
- URL: https://github.com/allwelldotdev/test-signing-commits
- Owner: allwelldotdev
- Created: 2024-05-06T15:08:48.000Z (about 2 years ago)
- Default Branch: gpg-signed
- Last Pushed: 2024-07-10T17:43:47.000Z (almost 2 years ago)
- Last Synced: 2025-10-20T23:33:49.339Z (8 months ago)
- Topics: git, github, learning
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This should be a **signed** commit using GPG.
This is commited but not signed.
This is a signed commit using GPG.
Configured git to sign all commits by default using the command below
```bash
git config --global commit.gpgsign true
```
All commits from here on are signed commits.
**Now...** changed commit signing mode to ssh from gpg
Also change git default commit sign from true (or automatic) to manual using the command below:
```bash
git config --global --unset commit.gpgsign
```
This commit is set to ssh signing but not signed.
This commit is now signed with ssh.
**Now...** configured git to sign all commits by default.
**Now...** I have changed commit signing format back to gpg using the following commands:
```bash
git config --global --unset gpg.format
gpg --list-secret-keys --keyid-format=LONG
# copy the secret primary key of the gpg key-pair and use it to change the signing key
git config --global user.signingkey [secret-primary-key]
```
This commit is signed using gpg.
I signed this commit on WSL/Ubuntu Linux Distro on my Windows PC. Just discovered WSL2 on Windows and it has been a fun discovery to say the least.