Can I specify .git/config values in a repo

泪湿孤枕 提交于 2019-12-01 11:29:07

There isn't. That's intentional. Your repo is yours. You have complete control over what goes on in it, nothing happens until you explicitly act.

To help others set up their repos correctly for your project easiest might be to provide a ~repo/config setup~ script they can run with or without looking at what it's going to do.

Another thing you could do, though it looks a bit problematic for your needs here, is to set up the default repo template at your site with the configs you're suggesting. That way people at your site will get your desired setup by default. Anybody who knows enough to have their own default will have no trouble at all running a repo setup script.

About as close as I can get to making the setup brainless is to provide a custom template, possibly by a simple frontender (e.g. complete contents git clone --template=path/to/yourproject/template "$@").

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!