1
我以前的git克隆下載boost
項目的文件夾:當我打開某個文件夾,而我沒想到他們,他們在那裏空加速在Github上鎖定
git clone https://github.com/boostorg/boost
。
我去它的文件夾瀏覽器通過:
https://github.com/boostorg/boost/tree/master/libs
爲什麼我看到的大多數文件夾的位置鎖定?我做錯了什麼?
我以前的git克隆下載boost
項目的文件夾:當我打開某個文件夾,而我沒想到他們,他們在那裏空加速在Github上鎖定
git clone https://github.com/boostorg/boost
。
我去它的文件夾瀏覽器通過:
https://github.com/boostorg/boost/tree/master/libs
爲什麼我看到的大多數文件夾的位置鎖定?我做錯了什麼?
他們沒有鎖定。他們是submodules。
如果你想自動下載與子模塊的存儲庫以及,運行此命令
git clone --recursive https://github.com/boostorg/boost
如果您已經下載了沒有子模塊回購,運行
git submodule update --init --recursive
注:這些命令將拉入所有的子模塊。 更多關於專題here
@ ar2015:['.gitmodules'](https://github.com/boostorg/boost/blob/master/.gitmodules)告訴你這些在哪裏。在Boosts案例中,他們居住在[BoostOrg](https://github.com/boostorg)帳戶中。 – sjaustirni
例如https://github.com/boostorg/boost/blob/filesystem.git給出了一個404 – ashman
@ashman:這是因爲子模塊不住在回購站中,而是存儲庫本身。正確的鏈接是https://github.com/boostorg/filesystem – sjaustirni