Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ykws/signed-commit-example
Example for various commits.
https://github.com/ykws/signed-commit-example
git github
Last synced: 22 days ago
JSON representation
Example for various commits.
- Host: GitHub
- URL: https://github.com/ykws/signed-commit-example
- Owner: ykws
- Created: 2024-04-16T21:56:46.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-11T14:16:02.000Z (6 months ago)
- Last Synced: 2024-05-12T13:24:44.962Z (6 months ago)
- Topics: git, github
- Homepage: https://zenn.dev/ykws/articles/signing-commit-basics
- Size: 289 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Signed Commit Example
This is the standard commit I adhere to.
This repository contains a mix of unsigned and signed commits.
- Anonymous commit
- Set name commit
- Set email commit
- GPG signed commit, but not add to host
- GPG signed commit, added to host
- Unset email and GPG signed
- GPG signed commit, but set email blank## Examples
### Anonymous commitThis commit has not set the `user.name` and `user.email` in Git config.
More specifically, **'Anonymous'** is explicitly specified because commits cannot be made without a `user.name`.
Additionally, because the `user.email` is unset, it cannot be linked to a GitHub account, resulting in the commit icon displaying as GitHub's default.### Set name commit
This commit has set the `user.name` in Git config.
The name is displayed as set, but it is not yet linked to a GitHub account.### Set email commit
This commit has set the `user.email` in Git config.
As a result, it is linked to a GitHub account, and the commit displays the GitHub username and icon.### GPG signed commit, but not add to host
This commit is a GPG-signed commit, but it has not been added to the host.
As a result, it is **unverified**.### GPG signed commit, added to host
This commit is a GPG-signed commit, and it has been added to the host.
As a result, it is **verified**.### Unset email and GPG signed
This commit has not set the `user.email` in Git config and a GPG-signed commit.
As a result, it is **unverified**.
This results in an outcome similar to a commit where only the `user.name` is set.### GPG signed commit, but set email blank
This commit is a GPG-signed commit, but the email address is not set in the signature.
As a result, it is **unverified**.