$ ./guess_the_languageGit
Git · hard · #47

libs/ui is a submodule. Which command checks out its content?

$ git clone https://example.com/app.git
$ cd app
$ ls libs/ui
(empty)
  1. git submodule sync --recursive
  2. git submodule add libs/ui
  3. git submodule update --init
  4. git checkout -- libs/ui
A plain clone leaves submodule directories empty. update --init registers and checks out the recorded commit; clone --recurse-submodules does it up front.
Play Git ▸