1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 23:06:00 +02:00
tldr/pages/common/git-changelog.md
Managor 0e8893e1ba
git*: refresh pages (#16372)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-05-05 09:12:13 +03:00

995 B

git changelog

Generate a changelog report from repository commits and tags. Part of git-extras. More information: https://manned.org/git-changelog.

  • Update existing file or create a new History.md file with the commit messages since the latest Git tag:

git changelog

  • List commits from the current version:

git changelog {{[-l|--list]}}

  • List a range of commits from the tag named 2.1.0 to now:

git changelog {{[-l|--list]}} {{[-s|--start-tag]}} {{2.1.0}}

  • List pretty formatted range of commits between the tag 0.5.0 and the tag 1.0.0:

git changelog {{[-s|--start-tag]}} {{0.5.0}} {{[-f|--final-tag]}} {{1.0.0}}

  • List pretty formatted range of commits between the commit 0b97430 and the tag 1.0.0:

git changelog --start-commit {{0b97430}} {{[-f|--final-tag]}} {{1.0.0}}

  • Specify CHANGELOG.md as the output file:

git changelog {{CHANGELOG.md}}

  • Replace contents of current changelog file entirely:

git changelog {{[-p|--prune-old]}}