Skip to main content

Command Palette

Search for a command to run...

Git Quickie: Changelog

Quick git command to generate simple changelog

Updated
2 min read
Git Quickie: Changelog
D

Software Engineer with passion in frontend who specializes in Angular but doesn't hesitate to check on other sides - configuring CI/CD, clouds, backend and API, mobile development using Flutter, and so on.

Sometimes there is a need to see what has been done since a specific commit but a bit hard to navigate through the repo history. In case there is no changelog generation tool configured, we can use git to generate a simple changelog (possible formats docs here):

git log 93f832d9..HEAD --pretty=format:'%h : %B' > CHANGELOG.md

...and here you are!

Here is example of generated log from my old repo:

c55a257 : updated naming

0702aa1 : Merge pull request #5 from iuriidanylevych/feature/results-google-spreadsheet

added code length counter, results are saved in google spreadsheet
3f52461 : added code length counter, results are saved in google spreadsheet

7a70d71 : Merge pull request #4 from iuriidanylevych/feature/updated-cocktail-map

updated cocktail map
f150180 : updated cocktail map

5110851 : Merge pull request #3 from iuriidanylevych/feature/moved-out-constants

Feature/moved out constants
1cdc12f : updated readme

79baf6b : moved out constants, ran prettier

097a901 : Merge pull request #2 from iuriidanylevych/feat/add-hard-mode

feat: add possibility to set difficulty
d934aba : fix: move info about tips from normal mode to hard mode

1d381c6 : chore: set normal mode by default in case user somehow didn't select it

1db5256 : feat: add possibility to set difficulty

d034e4e : Merge pull request #1 from iuriidanylevych/description-update

update description, use Set instead of Array, Map instead of Object
45eff4e : update description, use Set instead of Array, Map instead of Object

7190689 : added basic functionality

Git Quickies

Part 3 of 3

In this series I'll be sharing some quick git commands that could be useful from time to time

Start from the beginning

Git Quickie: Branch Comparison

Get simple list of changed files