mini tip:

You can shorten SHAs to as few as their first four characters, and Git will still accept them. In the case of ambiguity, where the same prefix matches two commits, Git will tell you. Short prefixes can save a lot of copy-pasting or typing when jumping from commands, such as from `git log` to `git diff`.

Two commands:

1. `git show b380` shows a commit.
2. `git show a721` fails due to the prefix being ambiguous. It lists two candidate commits, allowing the user to try again with a longer unambiguous prefix.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://fosstodon.org/users/adamchainz/statuses/114185440492674316 on your instance and quote it. (Note that quoting is not supported in Mastodon.)