buguibu / ios-notes-issues-lessons

Notes, issues and lessons about my iOS development experience
2 stars 0 forks source link

Adding a submodule in the right way #9

Open buguibu opened 5 years ago

buguibu commented 5 years ago

On my first uses of submodules they use to be always detached at HEAD because the git submodule add is only performing a checkout, so the proper way to add a submodule is by specifying also its branch in this way: git submodule add -b <branch> <repository> [<submodule-path>]