List of global configs
git config --global -l
Global .gitignore
git config --global core.excludesfile ~/.gitignore
vi ~/.gitignore
.idea
vendor
studio
.phpv
.sass-cache
Log alias
git config --global alias.lg "log --color --pretty=format:'%Cred%h%Creset - %s %Cgreen(%cr %ci) %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --abbrev-commit"
git config --global alias.lgm "log --pretty=oneline --abbrev-commit"
Automatically prune
Before fetching, automatically remove any remote-tracking references that no longer exist on the remote.
git config --global fetch.prune true
Remote
git remote -v # show
git remote add origin git@github.com:user/repo.git # add
git remote set-url origin git@github.com:user/repo.git # change
MISC
git config --global core.commentChar ';' # change comment character