Skip to content

Instantly share code, notes, and snippets.

@martijngastkemper
Last active August 29, 2015 13:56
Show Gist options
  • Save martijngastkemper/9130726 to your computer and use it in GitHub Desktop.
Save martijngastkemper/9130726 to your computer and use it in GitHub Desktop.
Update WordPress submodule to new version (tag).
cd folder-containing-wordpress
git fetch --tags
git checkout x.y.x
cd ../
git add folder-containing-wordpress
git commit -m "Upgrade WordPress to x.y.z"
git push
# To fetch a submodule when you changed the version locally, git pull isn't enough
cd folder-containing-wordpress
git fetch --tags
cd ..
git submodule update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment