Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 commit

This 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.

7b53b16

### 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.

c3022d3

### 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.

81385c7

### 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**.

bb26874

### 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**.

8df2e1a

### 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.

b1ef582

### 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**.

20a95e0