User Tools

Site Tools


git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git [2017/04/28 14:11] – [Pull] admingit [2021/01/19 23:58] (current) – [Git Changelog] admin
Line 106: Line 106:
 fi fi
 ' --tag-name-filter cat -- --branches --tags ' --tag-name-filter cat -- --branches --tags
 +</code>
 +
 +====== Git Changelog ======
 +
 +Generate a simple changelog of all commits between latest 2 tags.
 +
 +<code bash>
 +#!/usr/bin/env sh
 +
 +TAGS=($(git tag --sort=-version:refname | head -n 2))
 +git log --pretty=format:"* %s" "${TAGS[0]}"..."${TAGS[1]}" > RELEASE_CHANGELOG.md
 </code> </code>
  
  
git.1493381501.txt.gz · Last modified: 2017/04/28 14:11 by admin