# Nicer git log

DevFeed: [Nicer git log](<https://devfeed.tech/articles/nicer-git-log-37321.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/nicer-git-log/>)

Author: Stanko

Published: 2017-04-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [formatting](<https://devfeed.tech/topics/formatting.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Scripting, bash](<https://devfeed.tech/topics/scripting-bash.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [command](<https://devfeed.tech/tags/command.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [git](<https://devfeed.tech/tags/git.md>), [graph](<https://devfeed.tech/tags/graph.md>), [pretty](<https://devfeed.tech/tags/pretty.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

## AI overview

A short tutorial showing how to use git log's built-in --graph and --pretty=format options to produce a more readable terminal display, then save the command as a .bash_profile alias.

## Source excerpt

Just a short one. I want to share a simple command to display nicer git log in the terminal. git log has --pretty=format option built-in, we are just going to pass formatting to it. git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' And it looks like this: Then add it to your .bash_profile as an alias (I'm using glog) and that's it. alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"