git:config - evanmoran/quick GitHub Wiki

It is very common to configure your ~/.gitconfig file. Here are the essential ones:

Personal info:

[user]
  name = Francisco
  email = [email protected]

Add color:

[color]
  ui = auto

Editor:

[core]
  editor = sub -w

Improved log:

[alias]
  lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative

Improved cleaning:

[alias]
  cleanall = clean -fxd

Update submodules recursively:

[alias]
  sup = submodule update --init --recursive
⚠️ **GitHub.com Fallback** ⚠️