Created
March 20, 2024 10:53
-
-
Save 1mursaleen/1ea3b947210bf9ee0b807d380c2bb055 to your computer and use it in GitHub Desktop.
Better Changelog Generation Command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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