您的版本控制了invidual应用程序或整个项目还是两者兼而有之? [英] Do you version control the invidual apps or the whole project or both?

查看:341
本文介绍了您的版本控制了invidual应用程序或整个项目还是两者兼而有之?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,我有一个Django项目。我想知道我应该将每个应用程序放在自己的git存储库中,还是把整个项目放在一个git仓库中,还是我应该为每个应用程序都有一个git repo,还有一个git repo该项目?



谢谢。

解决方案

这真的取决于那些可重用的应用程序实际上将在项目之外重新使用?



在不同的回购中您可能需要的唯一原因是如果具有单独回收的其他项目可能需要使用它。但是你可以随时拆分它。制作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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆