I'm working on a pre-existing Laravel project hosted on github and I've set up my development environment with laradock. I cloned the laradock repo on my project root using
git submodule add https://github.com/LaraDock/laradock.git
When I switch to a different git branch however the laradock folder is emptied. I run git submodule add https://github.com/LaraDock/laradock.git
again and get the message
A git directory for 'laradock' is found locally with remote(s):
origin https://github.com/LaraDock/laradock.git
If you want to reuse this local git directory instead of cloning again from
https://github.com/LaraDock/laradock.git
use the '--force' option. If the local git directory is not the correct repo
or you are unsure what this means choose another name with the '--name' option.
So I run with the --force option and it returns. But surely I shouldn't have to do this every time I change branches?