简体   繁体   English

NetBeans git子文件夹作为分支

[英]NetBeans git subfolders as branch

I have project in NetBeans as this: 我在NetBeans中有这样的项目:

项目

I created GIT repository of test project as master branch. 我创建了测试项目的GIT存储库作为分支。

Question: 题:

How can I have each subfolder as branch of project test ? 如何将每个子文件夹作为项目测试的分支

Note: I am using GIT in NetBeans and http://bitbucket.org as remote GIT. 注意:我正在NetBeans和http://bitbucket.org中使用GIT作为远程GIT。

Thank you in advance. 先感谢您。

In the Git philosophy, the concept of branch isn't linked to the notion of folder (like it is in SVN). 在Git哲学中,分支的概念与文件夹的概念无关(就像在SVN中一样)。

When you checkout on a specific branch in a Git repository, you are not moving into another directory. 当您在Git存储库中的特定分支上签出时,您没有移入另一个目录。 You stay where you were, then Git updates the files in the directory so as to reflects the files of the new branch. 您留在原处,然后Git更新目录中的文件,以反映新分支的文件。

So to obtain the arborescence you want, it implies to clone the project several times. 因此,要获得所需的树状结构,就意味着要多次克隆项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM