0

I want to clone submodules on existing project. I don't want to remove and re-clone the project.

The .gitmodules is below:

[submodule "submodulename"]
    active = .
    path = submodulename
    url = https://name-surname@bitbucket.org/xxx-team/submodulename.git
    branch = master

The git version is 2.12.2

I run these commands:

git pull --recurse-submodules
Already up-to-date.

But there is no folder called submodulename. How can I clone the submodules? How can I checkout a branch?

zakjma
  • 2,030
  • 12
  • 40
  • 81
  • Possible duplicate https://stackoverflow.com/q/3796927/5784831? – Christoph Apr 30 '19 at 13:47
  • Possible duplicate of [Easy way to pull latest of all git submodules](https://stackoverflow.com/questions/1030169/easy-way-to-pull-latest-of-all-git-submodules) – phd Apr 30 '19 at 14:10
  • https://stackoverflow.com/search?q=%5Bgit-submodules%5D+update – phd Apr 30 '19 at 14:10

0 Answers0