Pull latest stable release via git

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:

Read More

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

Related posts

1 comment

  1. To my knowledge it is not possible to generically clone/checkout the latest stable version with either git or svn.

    In either case you have to identify the specific tag (version) you want to pull from with git or svn. Or, as you’ve done, just pull trunk (which is the development branch)

    For more see: https://codex.wordpress.org/Using_Subversion

Comments are closed.