Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git log without tags

Tags:

So I'm doing something like

 git log --graph --pretty='%h %d %s' -n10

to get brief history of my recent commits.

The only issue I have is that most of the time I'm not interested in seeing the tags, only the branches. %d however shows both tags and branches. Is there some way I can only display branch names and not tags?

like image 751
Jistanidiot Avatar asked Nov 08 '12 14:11

Jistanidiot


People also ask

Does git log show all branches?

Graph all git branchesDevelopers can see all branches in the graph with the –all switch. Also, in most situations, the –decorate switch will provide all the supplemental information in a formatted and nicely color-coded way.

What is git log?

The git log command displays all of the commits in a repository's history. By default, the command displays each commit's: Secure Hash Algorithm (SHA) author. date.

What is GITK command?

Usage. Gitk is invoked similarly to git log . Executing the gitk command will launch the Gitk UI which will look similar to the following: The upper left pane displays the commits to the repository, with the latest on top. The lower right displays the list of files impacted by the selected commit.


1 Answers

git log --format="%C(auto) %h %s"

enter image description here

like image 137
Nick Spreitzer Avatar answered Nov 24 '22 00:11

Nick Spreitzer