您的版本控制了invidual应用程序或整个项目还是两者兼而有之? [英] Do you version control the invidual apps or the whole project or both?
问题描述
谢谢。
这真的取决于那些可重用的应用程序实际上将在项目之外重新使用?
在不同的回购中您可能需要的唯一原因是如果具有单独回收的其他项目可能需要使用它。但是你可以随时拆分它。制作git repo是便宜的,所以如果有必要的话可以稍后再做一些事情。让事情变得复杂的事情只会让你以后沮丧,所以随时等待,直到你知道这是必要的。
YAGNI不仅仅是代码。
OK, so I have a Django project. I was wondering if I'm supposed to put each app in its own git repository, or is it better to just put the whole project into a git repository, or whether I should have a git repo for each app and also a git repo for the project?
Thanks.
It really depends on whether those reusable apps are actually going to be reused outside of the project or not?
The only reason you might need it in a different repo is if other projects with seperate repos might need to use it. But you can always split it out later. Making a git repo is cheap so it's one of those things you can do later if it becomes necessary. Making things complicated up front is just going to frustrate you later so feel free to wait till you know it's necessary
YAGNI it's for more than just code.
这篇关于您的版本控制了invidual应用程序或整个项目还是两者兼而有之?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!