Build compact release notes between two Git tags
Build a paste-ready command, then review its compatibility and effects before running it.
git log <from-tag>..<to-tag> --no-merges --pretty=format:'- %s (%h, %an)'Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
Linux + macOS + WindowsVerified for Linux, macOS, Windows using bash, zsh, powershell syntax.
Operational knowledgereview due 2027-01-19
Requirementsgitgit must be installed and available on PATH.
Version supportgit Current supported releasesVerified for linux, macos, windows using bash, zsh, powershell syntax; consult compatibility notes for platform-specific differences.
Expected signals- Add retry budget metrics (9a21bd4, Ada)Representative successful output; values vary with the selected target and system state.
Known errorsgit: command not foundgit is missing or is not available on PATH.
Verifygit log {{fromTag}}..{{toTag}} --no-merges --pretty=format:'- %s (%h, %an)'The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01gitCommandRuns the git stage of this one-liner.
02logArgumentPasses log to git.
03<from-tag>..ParameterA value supplied in the Fill parameters section.
04<to-tag>ParameterA value supplied in the Fill parameters section.
05--no-mergesOptionConfigures git with the --no-merges option.
06--pretty=format:'-OptionConfigures git with the --pretty=format:'- option.
07%sVariableExpands a value from the current shell environment or loop.
08(%h,ArgumentPasses (%h, to git.
09%an)'VariableExpands a value from the current shell environment or loop.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
git log v2.3.0..v2.4.0 --no-merges --pretty=format:'- %s (%h, %an)'
Example output
- Add retry budget metrics (9a21bd4, Ada)
- Fix IPv6 URL parsing (5f7c120, Grace)
Illustrative output — exact values vary by system and data.
Official sources