Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在NetBeans中有这样的项目:
我创建了测试项目的GIT 存储库作为主分支。
如何将每个子文件夹作为项目测试的分支?
注意:我在 NetBeans 和http://bitbucket.org中使用 GIT作为远程 GIT。
先感谢您。
在 Git 哲学中,分支的概念与文件夹的概念无关(就像在 SVN 中一样)。
当您在 Git 存储库中的特定分支上签出时,您并没有移动到另一个目录。你留在原来的地方,然后 Git 更新目录中的文件以反映新分支的文件。
因此,要获得您想要的树状结构,这意味着要多次克隆该项目。