github - If git does not configure global settings, does it need to be configured for each repository?
世界只因有你
世界只因有你 2017-05-17 10:01:48
0
1
759

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

世界只因有你
世界只因有你

reply all(1)
小葫芦

Assume that the subject of the question has two kinds of scripts: company and individualgit风格;电脑中公司的项目有5个,未来可能有更多;个人git项目有2个;这时候可以将公司的 git config 配置作 global; 个人的 git 项目每次clone后另行配置,也可以写shell;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!