Normal git logs
commands will output a full log detail to the console;
e.g.
Often developers want to see a condensed listing like:
To generate the above format using a simple git lg
command, developers create a git alias in their git configuration file:
[alias]
lg = log --color --graph --pretty=format:'%C(red)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Developers can also specify a bash command log
:
function log() {
git lg
}
Then in the terminal window, just type: