I always add juce as submodule to my projects too.
In case that can be useful to someone :
git submodule add --depth=1 https://github.com/juce-framework/JUCE.git
and then to get the develop branch :
cd JUCE
git remote set-branches origin develop
git fetch --depth 1 origin develop
git checkout develop