- Git log
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"

- Git last branch
git config --global alias.lb '!git branch --sort=-committerdate --color=always --format="%(HEAD)%(color:yellow)%(refname:short)%(color:reset) %(color:green)%(committerdate:relative)%(color:reset) %(color:blue)%(subject)%(color:reset) %(color:magenta)%(authorname)%(color:reset)" | head -n 3'

- Rename all commits Author in a branch
git filter-branch -f --env-filter '
NEW_NAME="New Author Name"
NEW_EMAIL="newauthor@example.com"
export GIT_AUTHOR_NAME="$NEW_NAME"
export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
' -- HEAD~31..HEAD
- Avoid use
--set-upstream to git push of new branches

git config --global push.default current
git config --global push.autoSetupRemote true