How to show only names and caption captions with a tag in Git?

I'm trying to use tags for release control in Git -I create a tag for each version. I would like to be able to create release notes by listing comment names for each commit with a tag or between two tags. I can't seem to find a way to do this.

+53
git git-log
May 31 '10 at 5:46 a.m.
source share
4 answers

If your tags are called LastRelease and NextRelease , then do

git log --pretty=format:%s LastRelease..NextRelease .

+69
May 31 '10 at 5:57 a.m.
source share

To show commit from TAG to the current chapter:

 git log TAG..HEAD 

Between two commits:

 git log TAG..TAG 

To format the log output, see the Pretty formatted git log section .

+36
May 31 '10 at 5:49 a.m.
source share

You should look at git shortlog . Here is an example output:

 $ git shortlog Al Jones (512): Added to .gitignore file Updated user model Bob Smith (222): Minor tweak to view Updated accounts controller Charles West (321): Started specs for user model Finished specs for user model 

In your case, you want to run git shortlog LastRelease..NextRelease

+10
Dec 18
source share

I combined Dominic and Igor together to return the headers of all commits from 2b150c4 to the current HEAD in chronological order and print it to the terminal ( echo added because git log does not build the line of the last line).

 git log --pretty=format:%s 2b150c4..HEAD --reverse | cat; echo 
+1
Feb 16 '17 at 0:01
source share



All Articles