When using Git configure an alias, you want to directly modify the configuration file, you must first find .gitconfig
~/.gitconfig 文件:用户目录下的配置文件只适用于该用户
若使用 git config 时用 --global 选项,读写的就是这个文件。
1. Change to the directory where .gitconfig
2. Configure aliases
Reference to solve the problem since: https://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%88%9D%E6%AC%A1%E8%BF % 90% E8% A1% 8C -Git-% E5% 89% 8D% E7% 9A% 84% E9% 85% 8D% E7% BD% AE