git global

    git config --global user.name "wang.zj"
    git config --global user.email "[email protected]"
    git config --global color.ui true # Let Git display the color, let the command output look Get more eye-catching
    git config format.pretty oneline # When displaying history, only one line of comment information is displayed
    git config --global alias.st status # Configure alias
    git config --global alias.co checkout # co means checkout
    git config --global alias.ci commit # ci means commit
    git config --global alias.br branch # br means branch
    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 --list # View current configuration

Guess you like

Origin blog.csdn.net/xiaozhiwise/article/details/114262412
Git