Configure Git

1. Global configuration to ~/.gitconfig file
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
2. Configuration to .git/config file
cd /path/ to/repository
git config user.name "Your Name"
git config user.email "[email protected]"
3, command line colorize
git config --global color.ui auto
4, configure git editor
git config --global core.editor /path/to/editor
Note: The order in which the system searches for editors is
GIT_EDITOR environment variable;
core.editor configuration value;
VISUAL environment variable;
EDITOR environment variable;
and, finally, plain vi.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326709877&siteId=291194637