I have git repository which has a sub module from the same repository but different branch i added it using
git worktree add -b develop ../src
and when i type: git worktree list
i get this:
but when i try to pull nothing changes in src folder.
i've added in .git/config:
[branch "develop"]
remote = origin
merge = refs/heads/develop
still nothing changed.
Is there a command that when cloning the repository will pull automatically the sub-module with ?