Setup user name and emails identifying your commits.
git config --global user.name "John Doe"
git config --global user.email "[email protected]"
Setup some nice defaults
git config --global push.default simple
git config --global branch.autosetuprebase always
git config --global diff.renames
You can see your configs
git config --list
You can setup aliases for your git commands.
git config --global alias.st status
git config --global alias.up "pull --rebase"
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 config --global alias.ltree "log --oneline --graph --decorate --all"