1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 08:22:08 +02:00

git-cliff: add page (#15611)

* git-cliff: add page

* Apply suggestions from code review

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Lena 2025-01-31 23:16:07 +01:00 committed by GitHub
parent c0e5ac98c5
commit 7f04c6819b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
pages/common/git-cliff.md Normal file
View file

@ -0,0 +1,24 @@
# git cliff
> A highly customizable changelog generator.
> More information: <https://git-cliff.org/docs/usage/args>.
- Generate a changelog from all commits in a Git repository and save it to `CHANGELOG.md`:
`git cliff > {{CHANGELOG.md}}`
- Generate a changelog from commits starting from the latest tag and print it to `stdout`:
`git cliff {{-l|--latest}}`
- Generate a changelog from commits that belong to the current tag (use `git checkout` on a tag before this):
`git cliff --current`
- Generate a changelog from commits that do not belong to a tag:
`git cliff {{-u|--unreleased}}`
- Write the default config file to `cliff.toml` in the current directory:
`git cliff {{-i|--init}}`