Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-06 00:19:54 +00:00
parent e452860d9b
commit 7e39fb6df5
49 changed files with 132 additions and 93 deletions

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Generate a changelog report from repository commits and tags.
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-changelog>.
> 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:
@@ -15,19 +15,19 @@ source: https://github.com/tldr-pages/tldr.git
- List commits from the current version:
`git changelog --list`
`git changelog {{[-l|--list]}}`
- List a range of commits from the tag named `2.1.0` to now:
`git changelog --list --start-tag {{2.1.0}}`
`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 --start-tag {{0.5.0}} --final-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}} --final-tag {{1.0.0}}`
`git changelog --start-commit {{0b97430}} {{[-f|--final-tag]}} {{1.0.0}}`
- Specify `CHANGELOG.md` as the output file:
@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
- Replace contents of current changelog file entirely:
`git changelog --prune-old`
`git changelog {{[-p|--prune-old]}}`