Generate a human-readable changelog from git commit history. Works with any git repository.
No dependencies required. Uses only git and bash.
bash scripts/changelog.sh --repo /path/to/repo
bash scripts/changelog.sh --repo /path/to/repo --since "2026-01-01"
bash scripts/changelog.sh --repo /path/to/repo --since "2026-01-01" --until "2026-02-01"
bash scripts/changelog.sh --repo /path/to/repo --format json
bash scripts/changelog.sh --repo /path/to/repo --format plain
| Format | Description |
|---|---|
| -------- | ------------- |
markdown | Default. Headers, commit hashes, authors, dates |
plain | Simple bullet list |
json | Array of commit objects with hash, subject, author, date, type |
| Flag | Description | Default |
|---|---|---|
| ------ | ------------- | --------- |
--repo | Repository path | Current directory |
--since | Start date | Last tag or 30 days ago |
--until | End date | Now |
--format | Output format | markdown |
--group | Group by conventional commit type | Off (needs bash 4+) |
--group mode requires bash 4+ (macOS ships with 3.2; install via brew install bash)共 1 个版本