You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# paste into your terminal to create a Git alias
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"
Example
git lg
## Line of change
git lg -p
##
git log --graph --pretty=format:'%h -%d %s (%cr) <%an>' --abbrev-commit
# one line commit + branch
git log --oneline --abbrev-commit --all --graph --decorate --color
#
git log --decorate --graph --abbrev-commit --date=relative
## No merge
git log --format='%Cred%h%Creset %s %Cgreen(%cr) %C(blue)<%an>%Creset%C(yellow)%d%Creset' --no-merges