[alias]
# Nice git log
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold red)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(bold white)%s%C(reset) %C(bold cyan)- %an%C(reset)%C(bold yellow)%d%C(reset)' lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
# Rewriting history with interactive rebasing re = "!git rebase -i HEAD~$1 #"

# Force pushing
force = push --force-with-lease

[rebase]
# Automatically do "git stash push/pop" before and after a rebase
autostash = true

Table of contents