search

Home  >  Q&A  >  body text

github - If git does not configure global settings, does it need to be configured for each repository?

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

世界只因有你世界只因有你2801 days ago821

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-17 10:03:48

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

    reply
    0
  • Cancelreply