When using git, if the global git config is set, then the global config configuration will be used during operation. Sometimes the company and personal warehouses use different configurations. In this case, global cannot be configured, so you need to configure it every time. Are all repositories configured with git config? The desired effect is that if git config is not configured, A will be used by default. If git config is configured, this configuration item will be used. Can this be achieved? Ask for advice
Assume that the subject of the question has two kinds of scripts: company and individual
git
风格;电脑中公司的项目有5个,未来可能有更多;个人git
项目有2个;这时候可以将公司的git config
配置作 global; 个人的git
项目每次clone
后另行配置,也可以写shell
;