How to “git clone” including submodules?

后端 未结 15 841
夕颜
夕颜 2020-11-22 05:40

I\'m trying to put a submodule into a repo. The problem is that when I clone the parent repo, the submodule folder is entirely empty.

Is there any way to make it so

15条回答
  •  悲哀的现实
    2020-11-22 06:00

    late answer

    // git CLONE INCLUDE-SUBMODULES ADDRESS DESTINATION-DIRECTORY
    git clone --recursive https://USERNAME@bitbucket.org/USERNAME/REPO.git DESTINATION_DIR
    

    As I just spent a whole hour fiddling around with a friend: Even if you have Admin rights on BitBucket, always clone the ORIGINAL repository and use the password of the one who owns the repo. Annoying to find out that you ran into this minetrap :P

提交回复
热议问题