Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git command to get release notes?

Tags:

git

I want to get tag release note, is it possible ?

I can get remote tags with :

git ls-remote --tags https://my git repo

But I want the release notes text attached to them?

like image 276
Clemweb Avatar asked Oct 30 '25 09:10

Clemweb


1 Answers

Using git you can get a list of commit messages by cloning the repo and running

git log TAG1..TAG2 --oneline --decorate

to get an output like this

55bbbdc (tag: 0.0.2) 0.0.2
254aa66 fix(eslint-plugin): expose new rules and use type guards (#8)
23d5a6f feat(eslint-plugin): prefer onpush component cd (#7)

While it's can be convenient for personal use, this is rarely a good format for sharing with others. To get better results use libraries like github-changelog-generator (Ruby, Github only) or auto-changelog (Node.js).

I've built a list of release notes best practices to take them to the next level. It requires being mindful about formatting, writing and annotating commit messages.

like image 168
Sergey Kopylov Avatar answered Nov 02 '25 00:11

Sergey Kopylov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!