Skip to content

Instantly share code, notes, and snippets.

@1mursaleen
Created March 20, 2024 10:53
Show Gist options
  • Save 1mursaleen/1ea3b947210bf9ee0b807d380c2bb055 to your computer and use it in GitHub Desktop.
Save 1mursaleen/1ea3b947210bf9ee0b807d380c2bb055 to your computer and use it in GitHub Desktop.
Better Changelog Generation Command
git log --pretty=format:"- %s" dd5baf97...HEAD > changelog.txt
git log --since="2023-03-01" --pretty=format:"- %s%n%b%n" > changelog.txt
git log --since="2024-03-01" --date=short --pretty=format:"%ad%n- %s%n%b%n" > changelog.txt
git log --since="2024-03-01" --date=short --pretty=format:"---%ad%n- %s%b" | awk '/^-/{if (NR>1) print ""; print; next} 1' > changelog.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment