分支到项目关系 [英] Branch to project relationship

查看:24
本文介绍了分支到项目关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对使用 TortoiseSVN 进行源代码控制比较陌生.我正在开发一个包含许多 .NET 项目文件的系统(一个解决方案可以包含许多项目).我有一个存储库,主干包含所有项目.如果您想对引用另一个项目的项目进行更改,您会怎么做.你把两个项目放在同一个分支吗?我买了一本名为Subversion"的书,但几天后它才会到货.

I am relatively new to using TortoiseSVN for source control. I am developing a system that contains many .NET project files (a solution can contain many projects). I have one repository and the trunk contains all the projects. What do you do if you want to make a change to a project that references another project. Do you put both projects in the same branch? I have bought a book titled 'Subversion' but it will not arrive for a few days.

推荐答案

项目文件和源代码管理没有相互耦合.任何分支"都将包括整个源代码树,而不是单个项目".(在这种情况下,源代码控制系统 SVN 不知道什么是项目",也不知道它与其他任何东西有何不同.它只是源代码树中的一个文本文件.)

The project files and the source control aren't coupled to one another. Any "branch" is going to include the entire source tree, not individual "projects." (The source control system in this case, SVN, has no knowledge of what a "project" is or how it differs from anything else. It's just a text file in the source tree.)

您应该在整个代码库的根部进行分支,基本上使分支成为代码库的完全自我维持的版本.

You should branch at the root of the entire codebase, essentially making the branch be a fully self-sustainable version of the codebase.

这篇关于分支到项目关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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