I'm currently working with a workflow that makes use of Wordpress as a submodule under git. My workflow involves adding a submodule to my project from the following URL:
git://github.com/WordPress/WordPress.git The problem:
Doing this seems to grab the most up-to-date Wordpress version, including the non-stable alpha versions.
I simply want to grab the most recent stable release, and I'm wondering whether there is some specific syntax I can add to the git URL above that allows me to specify a specific branch perhaps?
Thanks
git tag -land to clone a specific tag usegit checkout tags/your-targeted-tag. Obviously you're always cloning the full repo, but the branch or tag you use is what you're searching for.