Git Alias Configuration

We can set alias in the .gitconfig file.

[alias]
    st = status
    lg = log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
    ll = log --all --oneline --graph --decorate --color

NOTE: Most likely the .gitconfig file is in current user’s home directory.