Original text: garmoncheg.blogspot.com/2012/06/pre… (wall)
Do you like the traditional Git log as shown below?
Take a look at this one. Do you like it? (Click on the image to see a larger version)
To do this, the command line looks like this:
1
|
git log --graph --pretty= format : '%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
|
This is a little long. We can go like this:
1
|
git config --global alias .lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
|
We can then use a short command like this:
1
|
git lg
|
If you want to check out git log — pretty=format parameters, you can check out this article.
(Full text)
Call waiting welfare
1. Recently sorted out 20G resources, including product/operation/test/programmer/market, etc., and Internet practitioners [necessary skills for work, professional books on the industry, precious books on interview questions, etc.]. Access:
-
Scan the code of wechat to follow the public account “Atypical Internet”, forward the article to the moments of friends, and send the screenshots to the background of the public account to obtain dry goods resources links;
2. Internet Communication Group:
-
Pay attention to the public account “atypical Internet”, in the background of the public account reply “into the group”, network sharing, communication;
Author: increasingly, blog: https://coolshell.cn/articles/18190.html