1

I used git clone to download boost project:

git clone https://github.com/boostorg/boost

when I opened some folder they where empty while I did not expect them.

I went to its folders through browser:

https://github.com/boostorg/boost/tree/master/libs

Why do I see most of folders locked here? Am I doing anything wrong?

sjaustirni
  • 3,056
  • 7
  • 32
  • 50
ashman
  • 13
  • 3

1 Answers1

0

They are not locked. They are submodules.

If you want to automatically download a repository with submodules as well, run this command

git clone --recursive https://github.com/boostorg/boost

If you have already downloaded the repo without the submodules, run

git submodule update --init --recursive

Note: these commands will pull in all the submodules. More on the topic here

Community
  • 1
  • 1
sjaustirni
  • 3,056
  • 7
  • 32
  • 50
  • @ar2015: [`.gitmodules`](https://github.com/boostorg/boost/blob/master/.gitmodules) tells you where are these. In Boosts case, they live in the [BoostOrg](https://github.com/boostorg) account. – sjaustirni Feb 27 '16 at 14:42
  • @ashman: That's because submodules don't live in that repo, but are repositories themselves. The correct link is https://github.com/boostorg/filesystem – sjaustirni Feb 27 '16 at 14:59