When I issue git submodule add
will submodule be added from the master?
If yes - how do I tell git to use particular release (latest one)?
When I issue git submodule add
will submodule be added from the master?
If yes - how do I tell git to use particular release (latest one)?
It will add the latest commit of the default remote submodule repository default branch.
If the default branch is master, then the submodule will reference the latest commit of that branch at the time of the git submodule add
.
You need to check if that particular commit is indeed the "latest release" you want.
You can also ocnfigure a submodule to follow a particular branch; only on demand though, when you do a git submodule update --remote
.