我从原始官方回购分叉moodle
回购。它拥有超过15个分支机构,分支机构为master
。然后我在本地机器上克隆它。比方说我把它克隆在一个文件夹project
,它创建了一些50 folders
。克隆Github回购
做git remote -v
给出如下:
origin https://github.com/ps/moodle.git (fetch)
origin https://github.com/ps/moodle.git (push)
upstream https://github.com/moodle/moodle.git (fetch)
upstream https://github.com/moodle/moodle.git (push)
所以,我有一个origin
和upstream
。
现在,我想fork
和clone
另一个分支从另一个用户。可以说分支是gs
。因此,该用户在与moodle
相同的master
分支下维护此gs
分支。现在,为了将它克隆到本地机器上,我创建了一个远程文件otheruser
并对其进行了克隆。
所以,现在做git remote -v
给出如下:
origin https://github.com/ps/moodle.git (fetch)
origin https://github.com/ps/moodle.git (push)
otheruser https://github.com/otheruser/moodle.git (fetch)
otheruser https://github.com/otheruser/moodle.git (push)
upstream https://github.com/moodle/moodle.git (fetch)
upstream https://github.com/moodle/moodle.git (push)
我的问题是这样的:
当我克隆分支gs
,它创造了额外的子目录。所以,我的意思是我无法理解它是如何工作的?如果我在这些额外的子目录中做了任何更改,然后将它推到我的Github帐户下的master
分支,它会好吗?