Quickstart Guide
Get started with git-cliff and generate your first changelog in just a few steps.Initialize Configuration
Navigate to your Git repository and initialize git-cliff:This creates a You can edit this file to customize your changelog format. Check out the templating examples for different templates like Keep a Changelog, minimal, detailed, and more.
cliff.toml configuration file in your repository with sensible defaults.You can also specify a custom template name:
git-cliff --init github or provide a path to your own config file.Understanding the Configuration
The generatedcliff.toml includes three main sections:Generate Your First Changelog
Generate a changelog for your entire Git history:This command:
- Analyzes your Git commit history
- Groups commits by type (features, fixes, etc.)
- Generates a formatted changelog
- Writes the output to
CHANGELOG.md
Common Options
Next Steps
Configuration Guide
Deep dive into configuration options and customize your changelog format
Templating
Learn how to create custom templates with Tera
Command-Line Usage
Explore all CLI options and advanced usage examples
Integrations
Connect with GitHub, GitLab, and other Git hosting services
Tips for Better Changelogs
Troubleshooting
No Output Generated
If git-cliff doesn’t generate any output:- Check that you have commits in your repository
- Verify your
commit_parsersconfiguration matches your commit format - Try disabling
filter_unconventionalif you don’t use conventional commits:
Commits Not Grouped Correctly
Ensure your commit messages match the patterns in yourcommit_parsers:
Can’t Find Configuration File
By default, git-cliff looks forcliff.toml in the current directory. Specify a custom location:
Getting Help
Need assistance? Here are some resources:- View detailed command options:
git-cliff --help - Check out templating examples for different use cases
- Read the tips and tricks guide
- Join the Discord community