Skip to content

Instantly share code, notes, and snippets.

@cnlohr
Last active August 9, 2025 09:26
Show Gist options
  • Save cnlohr/04de6edd3e2a75face0a68c53be2017e to your computer and use it in GitHub Desktop.
Save cnlohr/04de6edd3e2a75face0a68c53be2017e to your computer and use it in GitHub Desktop.

Revisions

  1. cnlohr revised this gist May 18, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion forgot_to_check_out_with_recurse_submodules.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Did you just check out / clone a repository and forget --recursive / --recurse-submodules? Well, then. I have the answer for you:
    Did you just check out / clone a repository and forget --recursive / --recurse-submodules? Well, do this:

    ```
    git submodule update --init --recursive --remote
  2. cnlohr created this gist Aug 19, 2020.
    7 changes: 7 additions & 0 deletions forgot_to_check_out_with_recurse_submodules.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    Did you just check out / clone a repository and forget --recursive / --recurse-submodules? Well, then. I have the answer for you:

    ```
    git submodule update --init --recursive --remote
    ```

    For information about why this nugget was lost and burried in another stack exchange article, see this: https://meta.stackoverflow.com/questions/400424/how-can-i-request-that-a-question-merge-be-reversed