Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I show just the names and commit titles since a tag in Git?

Tags:

git

git-log

I'm trying to use tags for release management in Git—I create a tag for each release. I'd like to be able to create release notes by listing the comment titles for every commit since a tag, or between 2 tags. I can't seem to find any way to do this.

like image 618
Christopher Pickslay Avatar asked May 31 '10 05:05

Christopher Pickslay


People also ask

How can you display a list of files added in a specific commit?

To reduce the information and show only names of the files which committed, you simply can add --name-only or --name-status flag... These flags just show you the file names which are different from previous commits as you want...

How do you see the details of a commit?

`git log` command is used to view the commit history and display the necessary information of the git repository. This command displays the latest git commits information in chronological order, and the last commit will be displayed first.

How do I list my commits?

The most basic and powerful tool to do this is the git log command. By default, with no arguments, git log lists the commits made in that repository in reverse chronological order; that is, the most recent commits show up first.


1 Answers

If your tags are named LastRelease and NextRelease then do

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

like image 171
Dominic Cooney Avatar answered Sep 20 '22 09:09

Dominic Cooney