我從原始官方回購分叉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
分支,它會好嗎?