My favourite snippets for git configuration
#
# Summarize the changes as comment in the commit message.
# The summary helps to keep on track when writing comments.
git config --global commit.verbose true
# provide an alias lg for a compact and informative log. Use it on the commandline with
# git lg
# with author email
git config --local alias.lg "log --all --oneline --graph --decorate --pretty='%C(auto)%h %Cgreen%ai %C(reset)%C(auto)%s %d %C(bold blue)<%ae>'"
# without author email
git config --local alias.lg "log --all --oneline --graph --decorate --pretty='%C(auto)%h %Cgreen%ai %C(reset)%C(auto)%s %d'"